-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The "Log editor data" button should copy to the clipboard if clicked with Alt/Option #137
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perhaps svg
names could be clearer?
clipboard
->copy-to-clipboard
tick
->checkmark
As far as functionality is concerned, it seems to works as expected. However, if alt
is pressed and then released without using the button, Chrome switches focus to options button, and Firefox toggles options bar, both of which is somewhat annoying - this could cause poor user experience IMO. I suppose we don't want to intercept that, since that is default key behavior on these browsers, but perhaps we could consider different key than alt
? shift
and ctrl
do not trigger any additional behavior. Not sure about that one, maybe i'm looking too deep into this.
Thanks for the review @przemyslaw-zan.
What do you mean by "options button" and "options bar"? Is it the UI of the web browser? Because I only tested on Chrome/FF on Mac and there's nothing exceptional happening. Is it an OS thing maybe? |
As for the changes in the code, feel free to commit them straight to the PR. They make sense :) |
@oleq sorry for not specifying, yes, i meant UI of the browsers, and the behavior happens on Windows |
I didn't anticipate that. Nice catch 👍 I see three options now:
Which sounds best to you? I'm lazy so I'd rather go with Shift/Ctrl if confirmed safe. |
I agree with you on the last option being the best. Personally, I think that |
…o OS/browser handlers listening to Alt.
FYI: I used |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
…torInspector instead of CKEditorInspector.
Feature: The "Log editor data" button should copy to the clipboard if clicked with Alt/Option. Closes #136.