mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-28 19:49:20 +03:00
Cleanup AppUserStore
Simplify KeyState/Focused as Scope enum
This commit is contained in:
parent
62cb918180
commit
eff92c3152
27 changed files with 177 additions and 232 deletions
|
|
@ -1,4 +1,4 @@
|
|||
import { KeyState } from 'Common/Enums';
|
||||
import { Scope } from 'Common/Enums';
|
||||
import { doc } from 'Common/Globals';
|
||||
import { AbstractViewPopup } from 'Knoin/AbstractViews';
|
||||
|
||||
|
|
@ -10,8 +10,6 @@ class ViewOpenPgpKeyPopupView extends AbstractViewPopup {
|
|||
key: '',
|
||||
keyDom: null
|
||||
});
|
||||
|
||||
this.sDefaultKeyScope = KeyState.PopupViewOpenPGP;
|
||||
}
|
||||
|
||||
clearPopup() {
|
||||
|
|
@ -38,7 +36,7 @@ class ViewOpenPgpKeyPopupView extends AbstractViewPopup {
|
|||
}
|
||||
|
||||
onBuild() {
|
||||
shortcuts.add('a', 'meta', KeyState.PopupViewOpenPGP, () => {
|
||||
shortcuts.add('a', 'meta', Scope.ViewOpenPgpKey, () => {
|
||||
this.selectKey();
|
||||
return false;
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue