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

Fix radio and checkbox on Tizen

This commit is contained in:
Dmitry Lyzo 2020-03-11 22:19:26 +03:00
parent a44473dca2
commit 30414c98d7
2 changed files with 4 additions and 2 deletions

View file

@ -5,7 +5,8 @@ define(['browser', 'dom', 'css!./emby-checkbox', 'registerElement'], function (b
function onKeyDown(e) {
// Don't submit form on enter
if (e.keyCode === 13) {
// Real (non-emulator) Tizen does nothing on Space
if (e.keyCode === 13 || e.keyCode === 32) {
e.preventDefault();
this.checked = !this.checked;

View file

@ -6,7 +6,8 @@ define(['css!./emby-radio', 'registerElement'], function () {
function onKeyDown(e) {
// Don't submit form on enter
if (e.keyCode === 13) {
// Real (non-emulator) Tizen does nothing on Space
if (e.keyCode === 13 || e.keyCode === 32) {
e.preventDefault();
if (!this.checked) {