mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Fix navigation for emby-select element
Regression 84563176a1
If we prevent default action, keyboard navigation won't work.
This commit is contained in:
parent
5d8ab6a99b
commit
0f598073a8
1 changed files with 3 additions and 17 deletions
|
@ -79,23 +79,9 @@ function onMouseDown(e) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function onKeyDown(e) {
|
function onKeyDown(e) {
|
||||||
switch (e.keyCode) {
|
if (e.keyCode === 13 && !enableNativeMenu()) {
|
||||||
case 13:
|
e.preventDefault();
|
||||||
if (!enableNativeMenu()) {
|
showActionSheet(this);
|
||||||
e.preventDefault();
|
|
||||||
showActionSheet(this);
|
|
||||||
}
|
|
||||||
return;
|
|
||||||
case 37:
|
|
||||||
case 38:
|
|
||||||
case 39:
|
|
||||||
case 40:
|
|
||||||
if (layoutManager.tv) {
|
|
||||||
e.preventDefault();
|
|
||||||
}
|
|
||||||
return;
|
|
||||||
default:
|
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue