mirror of
https://github.com/element-hq/element-web
synced 2024-11-27 03:36:07 +03:00
Merge pull request #19037 from vector-im/t3chguy/fix/18481
This commit is contained in:
commit
44a67ee383
1 changed files with 2 additions and 0 deletions
|
@ -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,
|
||||
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue