mirror of
https://github.com/the-djmaze/snappymail.git
synced 2025-01-06 14:58: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);
|
keyScope(keyScopeFake);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
return ko.computed({
|
return value => {
|
||||||
read: () => keyScopeFake,
|
if (value) {
|
||||||
write: value => {
|
|
||||||
if (Scope.Menu !== value) {
|
if (Scope.Menu !== value) {
|
||||||
keyScopeFake = value;
|
keyScopeFake = value;
|
||||||
if (dropdownVisibility()) {
|
if (dropdownVisibility()) {
|
||||||
value = Scope.Menu;
|
value = Scope.Menu;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
keyScopeReal(value);
|
keyScopeReal(value);
|
||||||
|
shortcuts.setScope(value);
|
||||||
|
} else {
|
||||||
|
return keyScopeFake;
|
||||||
}
|
}
|
||||||
});
|
};
|
||||||
})();
|
})();
|
||||||
|
|
||||||
keyScopeReal.subscribe(value => shortcuts.setScope(value));
|
|
||||||
|
|
Loading…
Reference in a new issue