Skip to content
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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

jacob-thompson
Copy link

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.

@@ -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",
Copy link
Contributor

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_MACOSd.

Copy link
Collaborator

@Mm2PL Mm2PL left a 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.

Comment on lines 518 to 520
this->tryAddDefault(addedHotkeys, HotkeyCategory::Window,
QKeySequence("Ctrl+H"), "toggleLocalR9K",
QKeySequence("Ctrl+."), "toggleLocalR9K",
std::vector<QString>(), "toggle local r9k");
Copy link
Collaborator

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.

@jacob-thompson
Copy link
Author

@Nerixyz @Mm2PL see changes

I don't have a windows machine to test with but this works on my end

@Nerixyz
Copy link
Contributor

Nerixyz commented Dec 10, 2024

I don't have a windows machine to test with but this works on my end

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.

@jacob-thompson
Copy link
Author

jacob-thompson commented Dec 10, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Chatterino for Mac has incorrect key mapping for R9K toggle hidden messages
3 participants