Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Conversation

@Johennes
Copy link
Contributor

The previous shortcut CMD+OPT+H is already bound by the system (hide other windows) and cannot be overridden. This commit changes the shortcut to CTRL+SHIFT+H on macOS while keeping CTRL+ALT+H on other platforms.

Note that both CTRL+OPT+H (hide cursor) and CTRL+H (delete previous character) are bound by the system as well and wouldn't have worked as a replacement.

Fixes: element-hq/element-web#16692

Signed-off-by: Johannes Marbach n0-0ne+github@mailbox.org

The previous shortcut CMD+OPT+H is already bound by the system (hide other
windows) and cannot be overridden. This commit changes the shortcut to
CTRL+SHIFT+H on macOS while keeping CTRL+ALT+H on other platforms.

Note that both CTRL+OPT+H (hide cursor) and CTRL+H (delete previous character)
are bound by the system as well and wouldn't have worked as a replacement.

Fixes: element-hq/element-web#16692

Signed-off-by: Johannes Marbach <n0-0ne+github@mailbox.org>
Copy link
Contributor

@SimonBrandner SimonBrandner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks fine code-wise, but I don't like this solution much. In the future, there will be a need for figuring out a different way to handle this since it doesn't play well with customizable keybindings (there should be sane cross-platform defaults to allow for syncing).

@Johennes
Copy link
Contributor Author

there should be sane cross-platform defaults to allow for syncing

I think the underlying problem is that the H shortcut is overloaded on macOS. If we could switch to another letter, that might make it easier to find a cross platform shortcut.

@SimonBrandner
Copy link
Contributor

If we could switch to another letter, that might make it easier to find a cross platform shortcut.

That was what I was thinking, but let's not worry about it now since I'd like to make these changes in bulk with others since there are some other non-cross-platform shortcuts

@jryans jryans requested a review from a team April 6, 2021 10:02
Copy link
Collaborator

@jryans jryans left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! I agree it's a bit unfortunate all around, but this seems reasonable enough for now at least.

@jryans jryans merged commit 021ceeb into matrix-org:develop Apr 7, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Default 'Go To Home' shortcut doesn't work on mac

3 participants