Improved key event handling

This commit is contained in:
the-djmaze 2023-02-21 14:26:37 +01:00
parent 81d521c562
commit 1c1b043a50
7 changed files with 35 additions and 43 deletions

View file

@ -1,6 +1,7 @@
import ko from 'ko';
import { FileInfo, FileType } from 'Common/File';
import { stopEvent } from 'Common/Globals';
import {
attachmentDownload,
serverRequestRaw
@ -53,7 +54,7 @@ export class AttachmentModel extends AbstractModel {
}
toggleChecked(self, event) {
event.stopPropagation();
stopEvent(event);
self.checked(!self.checked());
}