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

Add opened dialog as inputManager event source

This commit is contained in:
Dmitry Lyzo 2020-03-10 18:19:18 +03:00
parent 90e9dcbee5
commit f9ec9e3b52

View file

@ -58,7 +58,7 @@ define(['playbackManager', 'focusManager', 'appRouter', 'dom', 'apphost'], funct
sourceElement = focusManager.focusableParent(sourceElement);
}
sourceElement = sourceElement || document.activeElement || window;
sourceElement = sourceElement || document.querySelector('.dialogContainer .dialog.opened') || document.activeElement || window;
if (eventListenerCount) {
var customEvent = new CustomEvent("command", {