mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-03-11 21:27:05 +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();
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue