mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-30 20:49:20 +03:00
There this works
This commit is contained in:
parent
3a48cc8b7f
commit
c7054ff56c
19 changed files with 32 additions and 441 deletions
|
|
@ -6,7 +6,7 @@ const
|
|||
doc = document,
|
||||
meta = /Mac OS X/.test(navigator.userAgent) ? 'meta' : 'ctrl',
|
||||
_scopes = {},
|
||||
toArray = v => Array.isArray(v) ? v : [v],
|
||||
toArray = v => Array.isArray(v) ? v : v.split(/\s*,\s*/),
|
||||
|
||||
fire = (actions, event) => {
|
||||
let modifiers = [];
|
||||
|
|
@ -20,7 +20,7 @@ const
|
|||
actions[modifiers].forEach(cmd => {
|
||||
try {
|
||||
// call the handler and stop the event if neccessary
|
||||
if (!event.defaultPrevented && cmd(event) === false) {
|
||||
if (!event.defaultPrevented && cmd(event) === false) {
|
||||
event.preventDefault();
|
||||
event.stopPropagation();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue