Skip to content

Commit

Permalink
Merge pull request #18006 from vector-im/t3chguy/spacesperf
Browse files Browse the repository at this point in the history
  • Loading branch information
t3chguy authored Jul 15, 2021
2 parents bd4c6b8 + 2877ef8 commit 8289d69
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/vector/platform/ElectronPlatform.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -600,6 +600,8 @@ export default class ElectronPlatform extends VectorBasePlatform {
case "8":
case "9":
case "0":
// ideally we would use SpaceStore.spacesEnabled here but importing SpaceStore in this platform
// breaks skinning as the platform is instantiated prior to the skin being loaded
if (SettingsStore.getValue("feature_spaces") && isOnlyCtrlOrCmdKeyEvent(ev)) {
this.navigateToSpace(parseInt(ev.key, 10));
handled = true;
Expand Down

0 comments on commit 8289d69

Please sign in to comment.