mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-30 20:49:20 +03:00
Improved shortcuts handling
This commit is contained in:
parent
65a3b9e4c7
commit
1d63683cf9
7 changed files with 28 additions and 50 deletions
|
|
@ -3,8 +3,6 @@ import 'External/User/ko';
|
|||
import { isArray, pString } from 'Common/Utils';
|
||||
import { mailToHelper, setLayoutResizer } from 'Common/UtilsUser';
|
||||
|
||||
import { Scope } from 'Common/Enums';
|
||||
|
||||
import {
|
||||
FolderType,
|
||||
SetSystemFoldersNotification,
|
||||
|
|
@ -90,7 +88,7 @@ class AppUser extends AbstractApp {
|
|||
const fn = (ev=>$htmlCL.toggle('rl-ctrl-key-pressed', ev.ctrlKey)).debounce(500);
|
||||
addEventsListener(doc, ['keydown','keyup'], fn);
|
||||
|
||||
shortcuts.add('escape,enter', '', Scope.All, () => rl.Dropdowns.detectVisibility());
|
||||
shortcuts.add('escape,enter', '', () => rl.Dropdowns.detectVisibility());
|
||||
}
|
||||
|
||||
reload() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue