Repository navigation
Feat: shortcut dialog - #38203
Feat: shortcut dialog#38203ojeytonwilliams wants to merge 13 commits into
Conversation
|
Hey, @ahmadabdolsaheb, any thoughts about the style and implementation? I just started from here and iterated until I had something I liked. Only then did I think about the other modals we use! |
|
The functionality is great. a couple of considerations. |
I wasn't sure about that, because Quincy didn't want it to be too obvious, since the navigation hotkeys could encourage skipping challenges. That said, making the information public somewhere seems like a good idea.
Good point, I'll sort that out. |
|
@ahmadabdolsaheb it should look a bit better now. |
809766f to
99e1802
Compare
The dialog hotkey is global, in part to ensure it is mounted when the dialog appears and so appears in the list of hotkeys. Also, alt+n is used for navigation mode instead of Escape as the latter is an important VSCode hotkey.
Now the height can change, but the top of the dialog will not move.
Also refactors associated code.
99e1802 to
3c11115
Compare
|
@scissorsneedfoodtoo hey Kris, I just realised I've made this clash with search. The dialog is triggered by What do you think, should we limit search to |
|
@ojeytonwilliams, sorry for the late response. I think limiting search to |
Hardcoding it for now, as it's not a react-hotkey
|
Thanks, @scissorsneedfoodtoo, that seems reasonable, so I went with that and added |
|
Overall, I really like this feature and it's looking good. Some suggestions...
|
|
Thanks for the pr, |
|
@ahmadabdolsaheb I should have used a bootstrap modal in the first place. I'll redo it using that. @moT01 I'll ping you once I've done that. Hopefully it should fix most of the problems you found. |
|
I still vote to remove the search, that's still only 13 items and can all fit on one screen. I'm just not seeing the usefulness of it. |
|
@moT01 I've made a few changes, I think it's a bit better now. Still under discussion:
|
|
I think its conventional to use |
|
Okay, I'll see if I can do everything with react-hotkeys to avoid the clash. |
|
Hello! Jumped down a rabbit hole looking for shortcuts and ended up here! I RTFD'ed the comments above, and have tried:
What esoteric key combination fires that gorgeous shortcut menu in @moT01's post? This guide here, the "g.x.x" key combinations events don't seem to be firing for me, perhaps I'm missing something? If someone could set me sorted on how to access the shortcut menu, I'd be one happy coder! Love the site btw, hence my inquiry for all of the shortcuts! Thank you for your time, and I hope everyone is safe and healthy. |
|
On the side note: these shortcuts could show up in the background when all editor tabs are unselected in the new next-curriculum editor. |
|
Closing this stale for now, for a head branch rename. Thanks for your PR. |


This adds a dialog showing commands and their shortcuts, accessible by
shift + ?. It also closes #37398 by changing the 'navigation mode' shortcut fromEscapetoAlt + n.Considerations:
TODO:
closes: #38842