Merge pull request #18006 from vector-im/t3chguy/spacesperf

pull/18053/head
Michael Telatynski 2021-07-15 10:18:18 +01:00 committed by GitHub
commit 8289d6937f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -600,6 +600,8 @@ export default class ElectronPlatform extends VectorBasePlatform {
case "8": case "8":
case "9": case "9":
case "0": 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)) { if (SettingsStore.getValue("feature_spaces") && isOnlyCtrlOrCmdKeyEvent(ev)) {
this.navigateToSpace(parseInt(ev.key, 10)); this.navigateToSpace(parseInt(ev.key, 10));
handled = true; handled = true;