1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

Don’t bind to keyevents of media keys

These events are already handled by MediaSession. On some operating systems, like Windows, the browser will send both the MediaSession event and the keydown event to the webpage, causing the event to be handled twice and resulting in issues.
This commit is contained in:
gnattu 2024-05-17 16:08:51 +08:00
parent b17ca028f8
commit bdce41c3ae

View file

@ -167,24 +167,6 @@ export function enable() {
case 'Pause': case 'Pause':
inputManager.handleCommand('pause'); inputManager.handleCommand('pause');
break; break;
case 'MediaPlayPause':
inputManager.handleCommand('playpause');
break;
case 'MediaRewind':
inputManager.handleCommand('rewind');
break;
case 'MediaFastForward':
inputManager.handleCommand('fastforward');
break;
case 'MediaStop':
inputManager.handleCommand('stop');
break;
case 'MediaTrackPrevious':
inputManager.handleCommand('previoustrack');
break;
case 'MediaTrackNext':
inputManager.handleCommand('nexttrack');
break;
default: default:
capture = false; capture = false;