mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-28 19:49:20 +03:00
Improved key event handling
This commit is contained in:
parent
81d521c562
commit
1c1b043a50
7 changed files with 35 additions and 43 deletions
|
|
@ -18,6 +18,7 @@ import {
|
|||
Settings,
|
||||
SettingsCapa,
|
||||
fireEvent,
|
||||
stopEvent,
|
||||
addShortcut,
|
||||
registerShortcut
|
||||
} from 'Common/Globals';
|
||||
|
|
@ -283,19 +284,18 @@ export class MailMessageView extends AbstractViewRight {
|
|||
|
||||
let el = eqs(event, 'a');
|
||||
if (el && 0 === event.button && mailToHelper(el.href)) {
|
||||
event.preventDefault();
|
||||
event.stopPropagation();
|
||||
stopEvent(event);
|
||||
return;
|
||||
}
|
||||
|
||||
if (eqs(event, '.attachmentsPlace .showPreview')) {
|
||||
event.stopPropagation();
|
||||
stopEvent(event);
|
||||
return;
|
||||
}
|
||||
|
||||
el = eqs(event, '.attachmentsPlace .showPreplay');
|
||||
if (el) {
|
||||
event.stopPropagation();
|
||||
stopEvent(event);
|
||||
const attachment = ko.dataFor(el);
|
||||
if (attachment && SMAudio.supported) {
|
||||
switch (true) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue