mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-04-20 10:42:12 +00:00
keyboard shortcuts prevented if some modifier key is pressed
This commit is contained in:
parent
c3f50a708f
commit
e46abdebdd
1 changed files with 1 additions and 1 deletions
|
|
@ -8,7 +8,7 @@ function KeyboardShortcuts() {
|
||||||
const events = new EventEmitter();
|
const events = new EventEmitter();
|
||||||
|
|
||||||
function onKeyDown(event) {
|
function onKeyDown(event) {
|
||||||
if (event.keyboardShortcutPrevented || event.target.tagName === 'INPUT') {
|
if (event.keyboardShortcutPrevented || event.target.tagName === 'INPUT' || event.ctrlKey || event.altKey || event.shiftKey || event.metaKey) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue