From e53427fce3dbe67ddd1618ba500961219b998b10 Mon Sep 17 00:00:00 2001 From: Ajeya Bhat <59968173+aj-ya@users.noreply.github.com> Date: Wed, 26 Jan 2022 14:22:55 +0530 Subject: [PATCH] Changed MacOS hotkey for GoToHome view. (#7631) --- src/KeyBindingsDefaults.ts | 2 +- src/accessibility/KeyboardShortcuts.ts | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/KeyBindingsDefaults.ts b/src/KeyBindingsDefaults.ts index 468d998952..4f6cca70f7 100644 --- a/src/KeyBindingsDefaults.ts +++ b/src/KeyBindingsDefaults.ts @@ -373,7 +373,7 @@ const navigationBindings = (): KeyBinding[] => { action: NavigationAction.GoToHome, keyCombo: { key: Key.H, - ctrlKey: true, + ctrlOrCmd: true, altKey: !isMac, shiftKey: isMac, }, diff --git a/src/accessibility/KeyboardShortcuts.ts b/src/accessibility/KeyboardShortcuts.ts index 4659a4258c..69658c6c2d 100644 --- a/src/accessibility/KeyboardShortcuts.ts +++ b/src/accessibility/KeyboardShortcuts.ts @@ -341,7 +341,8 @@ export const KEYBOARD_SHORTCUTS: { [setting: string]: ISetting } = { "KeyBinding.goToHomeView": { default: { ctrlOrCmdKey: true, - altKey: true, + altKey: !isMac, + shiftKey: isMac, key: Key.H, }, displayName: _td("Go to Home View"),