mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-28 03:29:20 +03:00
v2.13.0
This commit is contained in:
parent
92079fd6f7
commit
ed959459ef
12 changed files with 33 additions and 96 deletions
|
|
@ -64,7 +64,7 @@ const
|
|||
keydown = event => {
|
||||
let key = (event.key || '').toLowerCase().replace(' ','space'),
|
||||
target = event.target;
|
||||
// ignore keydown in any element that supports keyboard input unless it's the Escape key
|
||||
// ignore keydown in any element that supports keyboard input unless it's the Escape key
|
||||
if ('escape' === key || !target.closest || !target.closest('input,select,textarea,[contenteditable]')) {
|
||||
let modifiers = ['alt','ctrl','meta','shift'].filter(v => event[v+'Key']).join('+');
|
||||
scope[key] && scope[key][modifiers] && scope[key][modifiers].forEach(cmd => exec(event, cmd));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue