mirror of
https://github.com/SchildiChat/element-web.git
synced 2024-10-01 01:26:12 -04:00
Fix skinning
This commit is contained in:
parent
f65231268d
commit
2877ef8fcf
@ -50,7 +50,7 @@ import { showToast as showUpdateToast } from "matrix-react-sdk/src/toasts/Update
|
|||||||
import { CheckUpdatesPayload } from "matrix-react-sdk/src/dispatcher/payloads/CheckUpdatesPayload";
|
import { CheckUpdatesPayload } from "matrix-react-sdk/src/dispatcher/payloads/CheckUpdatesPayload";
|
||||||
import ToastStore from "matrix-react-sdk/src/stores/ToastStore";
|
import ToastStore from "matrix-react-sdk/src/stores/ToastStore";
|
||||||
import GenericExpiringToast from "matrix-react-sdk/src/components/views/toasts/GenericExpiringToast";
|
import GenericExpiringToast from "matrix-react-sdk/src/components/views/toasts/GenericExpiringToast";
|
||||||
import SpaceStore from "matrix-react-sdk/src/stores/SpaceStore";
|
import SettingsStore from 'matrix-react-sdk/src/settings/SettingsStore';
|
||||||
import { IMatrixProfile, IEventWithRoomId as IMatrixEvent, IResultRoomEvents } from "matrix-js-sdk/src/@types/search";
|
import { IMatrixProfile, IEventWithRoomId as IMatrixEvent, IResultRoomEvents } from "matrix-js-sdk/src/@types/search";
|
||||||
|
|
||||||
import VectorBasePlatform from './VectorBasePlatform';
|
import VectorBasePlatform from './VectorBasePlatform';
|
||||||
@ -600,7 +600,9 @@ export default class ElectronPlatform extends VectorBasePlatform {
|
|||||||
case "8":
|
case "8":
|
||||||
case "9":
|
case "9":
|
||||||
case "0":
|
case "0":
|
||||||
if (SpaceStore.spacesEnabled && isOnlyCtrlOrCmdKeyEvent(ev)) {
|
// 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)) {
|
||||||
this.navigateToSpace(parseInt(ev.key, 10));
|
this.navigateToSpace(parseInt(ev.key, 10));
|
||||||
handled = true;
|
handled = true;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user