Skip to content

Commit 8289d69

Browse files
authored
Merge pull request #18006 from vector-im/t3chguy/spacesperf
2 parents bd4c6b8 + 2877ef8 commit 8289d69

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/vector/platform/ElectronPlatform.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -600,6 +600,8 @@ export default class ElectronPlatform extends VectorBasePlatform {
600600
case "8":
601601
case "9":
602602
case "0":
603+
// ideally we would use SpaceStore.spacesEnabled here but importing SpaceStore in this platform
604+
// breaks skinning as the platform is instantiated prior to the skin being loaded
603605
if (SettingsStore.getValue("feature_spaces") && isOnlyCtrlOrCmdKeyEvent(ev)) {
604606
this.navigateToSpace(parseInt(ev.key, 10));
605607
handled = true;

0 commit comments

Comments
 (0)