mirror of
https://github.com/miniflux/v2.git
synced 2025-06-27 16:36:00 +00:00
Avoid Javascript minifier to break keyboard shortcuts
This commit is contained in:
parent
75b11d5744
commit
b015887b02
4 changed files with 8 additions and 6 deletions
|
@ -15,10 +15,9 @@ class KeyboardHandler {
|
|||
let key = this.getKey(event);
|
||||
if (this.isEventIgnored(event, key) || this.isModifierKeyDown(event)) {
|
||||
return;
|
||||
} else {
|
||||
event.preventDefault();
|
||||
}
|
||||
|
||||
event.preventDefault();
|
||||
this.queue.push(key);
|
||||
|
||||
for (let combination in this.shortcuts) {
|
||||
|
@ -47,7 +46,6 @@ class KeyboardHandler {
|
|||
return event.target.tagName === "INPUT" ||
|
||||
event.target.tagName === "TEXTAREA" ||
|
||||
(this.queue.length < 1 && !this.triggers.includes(key));
|
||||
|
||||
}
|
||||
|
||||
isModifierKeyDown(event) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue