-
Notifications
You must be signed in to change notification settings - Fork 15
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
feat(frontend/settings): add customisable hotkeys #548
feat(frontend/settings): add customisable hotkeys #548
Conversation
Hotkey recording broken after shift+f (no actual hotkey after that is recorded). Better would be to tell the user yes, you typed shift+f but we don't allow that. ("Taken by reserved hotkeys list" or something). |
Reserve highly considered "safe" hotkeys like up and down arrow keys, space for autoselect, enter / return to select line. These are very critical to reserve. I would argue reserving |
Ctrl+X, Ctrl+H shows blank screen even if line is activated. Clicking on blank area will advance line. I think there might be an out-of-scope issue open for this. Need to check before creating an issue out of this comment. |
That is because it is a Bani and #500 will make it happen |
btw @Harjot1Singh react-hotkeys has problems with hotkeys that begin with alt/option source: my work on sttm-web shortcuts |
These all are dev-only, except
This exists purely because in-browser, |
Not sure I can see what's going on here, appears to work for me. |
I think it would be nice to use zoom in and out in prod as well, have had a couple people ask about changing font sizes for navigator
Okay, no worries on this |
See here for example (notice the background) |
e283a4f
to
3dca681
Compare
I think he meant that you can copy with hotkeys but you cannot press the copy button in popover. Don’t worry about this (we have separate issue in tracker) |
This pull request introduces 2 alerts when merging 3dca681 into 792fc77 - view on LGTM.com new alerts:
|
Sequenced hotkeys appear to muck up shorter sequences: greena13/react-hotkeys#219 and greena13/react-hotkeys#255. Resolving. |
tntmarket/roam-toolkit#2 is a great reference to resolve many of the issues we are also having |
1 semi-serious limitation/bug remaining - if you carry on holding a modifier key after a hotkey has completed, it will not work again unless you focus away and back. Will try to resolve. |
For notification purposes, I've removed myself from review until you're finished with the remaining fixes |
The logic is sound, go for it
I want them to be locked/permanent (non-removable), so then a user will not be in a situation where they are unable to "fix" them since shift keys are not allowed (afaicr) |
…ay in fullscreen mode
Clears key history after a successful sequence using react-hotkeys internals. Refactors GlobalHotKeys into local component
Already part of the quit sequence
0c25255
to
a2b2431
Compare
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.
Congratulations ㊗️
Please file an issue to fix ctrlDown, hotkey, hotkey, ctrlUp
only triggering once
Otherwise LGTM
🚀 Can squash and merge!
Subject
Adds customisable hotkeys
Changes
I found the thread below hard to work against, so I've consolidated it here:
Linked issues
Closes #176, Closes #426
Before
N/A
After
Tests
TTR
At least 30 hours? Most time spent was not due to complexity of feature, but resolving 3rd party lib bugs.
Reviewers
@bhajneet