-
-
Notifications
You must be signed in to change notification settings - Fork 455
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
change default local r9k keybinding per macOS standard #5764
base: master
Are you sure you want to change the base?
Conversation
@@ -516,7 +516,7 @@ void HotkeyController::addDefaults(std::set<QString> &addedHotkeys) | |||
std::vector<QString>(), "reopen split"); | |||
|
|||
this->tryAddDefault(addedHotkeys, HotkeyCategory::Window, | |||
QKeySequence("Ctrl+H"), "toggleLocalR9K", | |||
QKeySequence("Ctrl+."), "toggleLocalR9K", |
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.
This should be #ifdef Q_OS_MACOS
d.
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.
Ctrl+H is a perfectly good bind for every other OS, I don't want it changed for any other system.
this->tryAddDefault(addedHotkeys, HotkeyCategory::Window, | ||
QKeySequence("Ctrl+H"), "toggleLocalR9K", | ||
QKeySequence("Ctrl+."), "toggleLocalR9K", | ||
std::vector<QString>(), "toggle local r9k"); |
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.
This does not change configs for existing users. This is probably not what should be done here as CMD+H is already reserved there is no harm forcing toggle local r9k
to be rebound to it for every user.
This doesn't change anything on Windows or Linux, so it's fine. I don't know about common macOS key binds, so I can't comment on the chosen bind. |
I didn’t think a tremendous amount about the keymap, just settled on something that works and is easily pressable. The only other option I considered is `Cmd` + `,`, but this is already reserved to open the settings interface. I figured if something more mnemonic is considered in the future, this can always be changed again
|
fixes #5711
#5711 is labelled as a bug, but this behavior is intended (source) (source)
easiest fix is to change the default local r9k keymap. while
Ctrl
/Cmd
+H
is a more mnemonic keymap, I do not think it is mnemonic enough to be worth making all macOS users have to configure this setting manually.