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
Editor focus and unfocus hotkeys #12828
Comments
Yes, please... and lets try and standardize this time, for simplicity |
@raisedadead PR is #12829 Edit: referenced wrong issue... |
@systimotic I agree that this would be really helpful. Ideally, a single keystroke, rather than a sequence (kind of like how our ctrl+enter runs code). |
@systimotic apologies for delay in getting back, we would want the keyboard shortcuts in tune with gmail and github and do that sitewide. More reference: And maybe even list this in our wiki. |
@raisedadead No problem! You suggested I previously wrote a wiki article about our keyboard shortcuts, inspired by #8104. I just noticed I linked my comment that should've gone to the PR to this issue itself 😅 I should put "Amazing at pasting the wrong links" in my portfolio 😄 The actual PR is #12829 |
I should be more clear in my views, sorry... 😅 ! So here you go:
Why f? Well because g is used by "gmail" and "github". |
@raisedadead No worries!
✔️ 👍 This is what we currently do.
I would agree, but we're already using g for so many shortcuts, I think it would probably be better to stick to that. I was also under the impression that the "g" stood for "go", rather than the name of the product. This especially makes sense as all the hotkeys that don't "go" anywhere do not start with "g".
Yep, which is why all editor hotkeys involve a modifier key. This is a large part of the reason why I want an unfocussing hotkey so bad, otherwise I can't use most of the other hotkeys without going to the mouse first. I think escape is a good choice for an unfocussing hotkey, but I'm open to suggestions for other keys. To stick to the theme of all editor-related hotkeys being "a single keystroke, rather than a sequence" (quoting Quincy), I like |
💯 x 💯 ! |
@raisedadead should I unmerge this then? I didn't realize there were other changes in the works. |
@dhcodes we can have separate PRs if everyone agrees. |
I'm sorry, I'm not following what's going on. 😕 What other changes are in the works? I may have to redo some of the changes as per #12832 (comment) I previously shared this wiki article in this thread, showing that the hotkeys seem standardized and document as suggested. |
Issue Description
In the switch to React, it seems like a lot features were lost. I fixed one of those previously (#11329), and now I found another one: #8241
I found this because I was searching issues about unfocusing the editor as suggested on the forum here. I ran into this myself previously, and I feel this would be a great addition. It's really annoying to have to grab the mouse to be able to the keyboard 😅
I managed to implement both of these, so if we agree these features would be good to have, I can create a PR. 👍
@freeCodeCamp/moderators Feedback?
The text was updated successfully, but these errors were encountered: