From 5a561b674f4098133cf28ba0ea94f8a4166b423b Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Tue, 14 Sep 2021 16:02:15 +0100 Subject: [PATCH] Fix space keyboard shortcuts conflicting with native zoom shortcuts --- src/vector/platform/ElectronPlatform.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/vector/platform/ElectronPlatform.tsx b/src/vector/platform/ElectronPlatform.tsx index dfec829d10..1f465ec7e9 100644 --- a/src/vector/platform/ElectronPlatform.tsx +++ b/src/vector/platform/ElectronPlatform.tsx @@ -566,6 +566,7 @@ export default class ElectronPlatform extends VectorBasePlatform { private navigateForwardBack(back: boolean) { this.ipcCall(back ? "navigateBack" : "navigateForward"); } + private navigateToSpace(num: number) { dis.dispatch({ action: Action.SwitchSpace, @@ -599,6 +600,7 @@ export default class ElectronPlatform extends VectorBasePlatform { // breaks skinning as the platform is instantiated prior to the skin being loaded SettingsStore.getValue("feature_spaces") && ev.code.startsWith("Digit") && + ev.code !== "Digit0" && // this is the shortcut for reset zoom, don't override it isOnlyCtrlOrCmdKeyEvent(ev) ) { const spaceNumber = ev.code.slice(5); // Cut off the first 5 characters - "Digit"