Cleanup shortcuts scope handling

This commit is contained in:
the-djmaze 2022-03-07 13:47:03 +01:00
parent 874f2592ca
commit 60987f4623
5 changed files with 16 additions and 22 deletions

View file

@ -1,7 +1,6 @@
import ko from 'ko';
import { addObservablesTo, addComputablesTo, addSubscribablesTo } from 'External/ko';
import { Scope } from 'Common/Enums';
import { keyScope, SettingsGet, leftPanelDisabled } from 'Common/Globals';
import { ViewType, showScreenPopup } from 'Knoin/Knoin';
@ -16,8 +15,8 @@ class AbstractView {
this.viewModelDom = null;
this.keyScope = {
scope: Scope.None,
previous: Scope.None,
scope: 'none',
previous: 'none',
set: function() {
this.previous = keyScope();
keyScope(this.scope);