Merge pull request #18490 from vector-im/t3chguy/fix/18088

This commit is contained in:
Michael Telatynski 2021-09-16 10:16:23 +01:00 committed by GitHub
commit 1aa2efd2ce
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 9 deletions

View file

@ -598,7 +598,7 @@ export default class ElectronPlatform extends VectorBasePlatform {
if (!handled &&
// 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
SettingsStore.getValue("feature_spaces") &&
!SettingsStore.getValue("showCommunitiesInsteadOfSpaces") &&
ev.code.startsWith("Digit") &&
ev.code !== "Digit0" && // this is the shortcut for reset zoom, don't override it
isOnlyCtrlOrCmdKeyEvent(ev)