mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Ignore modified hotkeys
This commit is contained in:
parent
b2676c1633
commit
3025e9bf48
5 changed files with 80 additions and 40 deletions
|
@ -125,6 +125,9 @@ export function isInteractiveElement(element) {
|
|||
export function enable() {
|
||||
const hasMediaSession = 'mediaSession' in navigator;
|
||||
window.addEventListener('keydown', function (e) {
|
||||
// Skip modified keys
|
||||
if (e.ctrlKey || e.altKey || e.metaKey || e.shiftKey) return;
|
||||
|
||||
const key = getKeyName(e);
|
||||
|
||||
// Ignore navigation keys for non-TV
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue