mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-02 22:17:03 +03:00
Cleanup shortcuts scope handling
This commit is contained in:
parent
874f2592ca
commit
60987f4623
5 changed files with 16 additions and 22 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue