From c786ef9f69f31b3e6c2c545f9220f35263b6db72 Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Tue, 14 Sep 2021 16:02:14 +0100 Subject: [PATCH] Fix space keyboard shortcuts conflicting with native zoom shortcuts --- src/stores/SpaceStore.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/stores/SpaceStore.tsx b/src/stores/SpaceStore.tsx index f49d51454b..e9a92a33e9 100644 --- a/src/stores/SpaceStore.tsx +++ b/src/stores/SpaceStore.tsx @@ -845,10 +845,11 @@ export class SpaceStoreClass extends AsyncStoreWithClient { break; case Action.SwitchSpace: - if (payload.num === 0) { + // 1 is Home, 2-9 are the spaces after Home + if (payload.num === 1) { this.setActiveSpace(null); } else if (this.spacePanelSpaces.length >= payload.num) { - this.setActiveSpace(this.spacePanelSpaces[payload.num - 1]); + this.setActiveSpace(this.spacePanelSpaces[payload.num - 2]); } break;