-
-
Notifications
You must be signed in to change notification settings - Fork 32
Improve keybinds #303
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
base: develop/2.7
Are you sure you want to change the base?
Improve keybinds #303
Conversation
…trl + c is copy on windows use InputMap instead of KeyListener in EditorPanel and eliminate EditorPopupMenu::handleKeyEvent simplify EditorPanel ctrl + click to navigate logic
fix inverted EditKeyBindDialog::isNewCombination
use InputMap instead of key listener in JavadocDialog
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.
looks great! this is giving me a few ideas for other improvements to keybinds:
- improve the logic of the keybinding menus
- when editing an individual keybind, "save" does not save to config. the keybinding will only be saved when the other save button (same text!) is pressed in the top-level menu. very unintuitive
- "save" is on the left, with no visual differentiation. it's common in UI to put the continue button on the left, but usually with accent colour in order to show which to press. we should look at adding colour like what is seen on the "save as" dialog:
- minor bug: you can create multiple of the exact same keybind (if the keybind is ctrl+shift+f, i can just add a second ctrl+shift+f without issue)
- the config file is unreadable:
[key_codes]
search = ["70;c0", "70;c0"]
search_field = ["76;c0"]
we should look at either adding comments to describe what the bindings actually are or changing the encoding to something human-readable.
ANYWAY. i'm just yapping i'll break all that out into separate issues
Uses
InputMap
s+ActionMap
s instead ofKeyListener
s forKeyBind
s.Also:
isNewCombination
was inverted)EditorPanel
ctrl+click to navigate logicEDITOR_SHOW_CALLS
binding toctrl + alt + c
becausectrl + c
is copy on windows (before it was both copying and showing calls)