mirror of https://github.com/vector-im/riot-web
Change spaces shortcut to have 1 = space 1, 0 = home
parent
f7ea7b948a
commit
9e4eebed26
|
@ -602,9 +602,7 @@ export default class ElectronPlatform extends VectorBasePlatform {
|
||||||
case "9":
|
case "9":
|
||||||
case "0":
|
case "0":
|
||||||
if (SettingsStore.getValue("feature_spaces") && isOnlyCtrlOrCmdKeyEvent(ev)) {
|
if (SettingsStore.getValue("feature_spaces") && isOnlyCtrlOrCmdKeyEvent(ev)) {
|
||||||
const keyNum = parseInt(ev.key, 10);
|
this.navigateToSpace(parseInt(ev.key, 10));
|
||||||
// map keyNum {1..0} to a {0..9} where key 1 is the home space
|
|
||||||
this.navigateToSpace((keyNum + 9) % 10);
|
|
||||||
handled = true;
|
handled = true;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue