Skip to content

Commit

Permalink
Merge pull request #19037 from vector-im/t3chguy/fix/18481
Browse files Browse the repository at this point in the history
  • Loading branch information
t3chguy authored Sep 16, 2021
2 parents 72e4197 + 5a561b6 commit 44a67ee
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 @@ -566,6 +566,7 @@ export default class ElectronPlatform extends VectorBasePlatform {
private navigateForwardBack(back: boolean) {
this.ipcCall(back ? "navigateBack" : "navigateForward");
}

private navigateToSpace(num: number) {
dis.dispatch<SwitchSpacePayload>({
action: Action.SwitchSpace,
Expand Down Expand Up @@ -599,6 +600,7 @@ export default class ElectronPlatform extends VectorBasePlatform {
// breaks skinning as the platform is instantiated prior to the skin being loaded
SettingsStore.getValue("feature_spaces") &&
ev.code.startsWith("Digit") &&
ev.code !== "Digit0" && // this is the shortcut for reset zoom, don't override it
isOnlyCtrlOrCmdKeyEvent(ev)
) {
const spaceNumber = ev.code.slice(5); // Cut off the first 5 characters - "Digit"
Expand Down

0 comments on commit 44a67ee

Please sign in to comment.