mirror of
https://github.com/the-djmaze/snappymail.git
synced 2024-12-30 19:41:46 +08:00
Still issue with shortcuts
https://github.com/the-djmaze/snappymail/issues/277#issuecomment-1064880609
This commit is contained in:
parent
d6dc4d291c
commit
088d6cab55
1 changed files with 3 additions and 3 deletions
|
@ -1,5 +1,5 @@
|
|||
import ko from 'ko';
|
||||
import { addEventsListeners, addShortcut } from 'Common/Globals';
|
||||
import { addEventsListeners, addShortcut, registerShortcut } from 'Common/Globals';
|
||||
import { isArray } from 'Common/Utils';
|
||||
import { koComputable } from 'External/ko';
|
||||
|
||||
|
@ -266,7 +266,7 @@ export class Selector {
|
|||
}
|
||||
});
|
||||
|
||||
addShortcut('enter,open', '', keyScope, () => {
|
||||
registerShortcut('enter,open', '', keyScope, () => {
|
||||
const focused = this.focusedItem();
|
||||
if (focused && !focused.selected()) {
|
||||
this.actionClick(focused);
|
||||
|
@ -280,7 +280,7 @@ export class Selector {
|
|||
this.newSelectPosition(event.key, true);
|
||||
return false;
|
||||
});
|
||||
addShortcut('arrowup,arrowdown,home,end,pageup,pagedown,space', '', keyScope, event => {
|
||||
registerShortcut('arrowup,arrowdown,home,end,pageup,pagedown,space', '', keyScope, event => {
|
||||
this.newSelectPosition(event.key, false);
|
||||
return false;
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue