mirror of
https://github.com/the-djmaze/snappymail.git
synced 2025-01-01 20:42:19 +08:00
Bugfix: shortcuts stop working
https://github.com/the-djmaze/snappymail/issues/62#issuecomment-810921656
This commit is contained in:
parent
319e30265b
commit
5ef49f9b8e
1 changed files with 6 additions and 7 deletions
|
@ -40,19 +40,18 @@ export const keyScope = (()=>{
|
|||
keyScope(keyScopeFake);
|
||||
}
|
||||
});
|
||||
return ko.computed({
|
||||
read: () => keyScopeFake,
|
||||
write: value => {
|
||||
return value => {
|
||||
if (value) {
|
||||
if (Scope.Menu !== value) {
|
||||
keyScopeFake = value;
|
||||
if (dropdownVisibility()) {
|
||||
value = Scope.Menu;
|
||||
}
|
||||
}
|
||||
|
||||
keyScopeReal(value);
|
||||
shortcuts.setScope(value);
|
||||
} else {
|
||||
return keyScopeFake;
|
||||
}
|
||||
});
|
||||
};
|
||||
})();
|
||||
|
||||
keyScopeReal.subscribe(value => shortcuts.setScope(value));
|
||||
|
|
Loading…
Reference in a new issue