mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Added firefox browser condition
This commit is contained in:
parent
a6b114ce13
commit
41f627a07e
1 changed files with 3 additions and 1 deletions
|
@ -10,9 +10,11 @@ import 'webcomponents';
|
|||
function onKeyDown(e) {
|
||||
// Don't submit form on enter
|
||||
// Real (non-emulator) Tizen does nothing on Space
|
||||
if (e.keyCode === 13 || e.keyCode === 32) {
|
||||
if ((e.keyCode === 13 || e.keyCode === 32) && !browser.firefox) {
|
||||
e.preventDefault();
|
||||
|
||||
this.checked = !this.checked;
|
||||
|
||||
this.dispatchEvent(new CustomEvent('change', {
|
||||
bubbles: true
|
||||
}));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue