From 088d6cab5547f9f4eae90b2de9cd80dedfc00e2f Mon Sep 17 00:00:00 2001 From: the-djmaze <> Date: Fri, 11 Mar 2022 10:36:27 +0100 Subject: [PATCH] Still issue with shortcuts https://github.com/the-djmaze/snappymail/issues/277#issuecomment-1064880609 --- dev/Common/Selector.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dev/Common/Selector.js b/dev/Common/Selector.js index 8d765b1d2..f413fd76c 100644 --- a/dev/Common/Selector.js +++ b/dev/Common/Selector.js @@ -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; });