From 9e4eebed261e6a4d446aa8af78d18853a16a0ecc Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Fri, 18 Jun 2021 08:24:36 +0100 Subject: [PATCH] Change spaces shortcut to have 1 = space 1, 0 = home --- src/vector/platform/ElectronPlatform.tsx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/vector/platform/ElectronPlatform.tsx b/src/vector/platform/ElectronPlatform.tsx index ae7b7f850a..073599200b 100644 --- a/src/vector/platform/ElectronPlatform.tsx +++ b/src/vector/platform/ElectronPlatform.tsx @@ -602,9 +602,7 @@ export default class ElectronPlatform extends VectorBasePlatform { case "9": case "0": if (SettingsStore.getValue("feature_spaces") && isOnlyCtrlOrCmdKeyEvent(ev)) { - const keyNum = parseInt(ev.key, 10); - // map keyNum {1..0} to a {0..9} where key 1 is the home space - this.navigateToSpace((keyNum + 9) % 10); + this.navigateToSpace(parseInt(ev.key, 10)); handled = true; } break;