Merge pull request #5818 from Johennes/feature/mac-go-home

Fix broken "Go to Home View" shortcut on macOS
pull/21833/head
J. Ryan Stinnett 2021-04-07 10:32:17 +01:00 committed by GitHub
commit 021ceeb7c3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -360,11 +360,11 @@ const navigationBindings = (): KeyBinding<NavigationAction>[] => {
action: NavigationAction.GoToHome, action: NavigationAction.GoToHome,
keyCombo: { keyCombo: {
key: Key.H, key: Key.H,
ctrlOrCmd: true, ctrlKey: true,
altKey: true, altKey: !isMac,
shiftKey: isMac,
}, },
}, },
{ {
action: NavigationAction.SelectPrevRoom, action: NavigationAction.SelectPrevRoom,
keyCombo: { keyCombo: {

View File

@ -265,7 +265,7 @@ const shortcuts: Record<Categories, IShortcut[]> = {
description: _td("Toggle this dialog"), description: _td("Toggle this dialog"),
}, { }, {
keybinds: [{ keybinds: [{
modifiers: [CMD_OR_CTRL, Modifiers.ALT], modifiers: [Modifiers.CONTROL, isMac ? Modifiers.SHIFT : Modifiers.ALT],
key: Key.H, key: Key.H,
}], }],
description: _td("Go to Home View"), description: _td("Go to Home View"),