-
-
Notifications
You must be signed in to change notification settings - Fork 97
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
add close history view toolbar button #649
Conversation
The keyCode seems pretty unnecessary. Why not manage it directly in |
@Helium314 How can we access the KeyboardSwitcher from inside the view? |
I can't remember any plan... was it something I wrote?
Why do you need keyboard switcher? The ABC key also doesn't need it. |
I debugged it and the ABC stops the clipboard history view after a chain of commands that begins at onCodeInput() with parameter codePoint = KeyCode.ALPHA = -201. So it does use a KeyCode to achieve this. Also, feel free to change CLOSE_VIEW to whatever you like |
ABC button functionality is what is wanted in #403, so I don't think doing exactly the same as ABC key would be confusing. So just not using a code, and handling it in
CLOSE_VIEW is a confusing mix. Either is should be clear what the key will do (which view should be closed?), or it should be actually generic. But currently it doesn't have a generic use, and I don't know which uses you have in mind. |
@Helium314 is it ok now? |
Thanks! |
One (very) minor thing not related to code changes: could link the issues you're fixing with fix or fixes before? |
Oh, and what I didn't notice before: the differences between the "normal" and the rounded icons are very small, I can barely see them in full screen view on a large display. |
Glad to lend a hand :)
Nice, I did not know that. I'll update the other open PRs that mentioned an issue
It's the exact same icon but scaled to a 960x960 viewport. I think most other rounded icons are like that as well.
If it does not look too small feel free to remove it, it's fine by me of course |
As far as I know the viewport dimensions are only relevant for the path data. The image will always be scaled to |
and rename closeView to close, as the icon can be more generic than the toolbar key
Demo:
See #403