Commit Graph

13 Commits

Author SHA1 Message Date
Kasin Sparks a24b840153 Replace deprecated initEvent()
Replaced deprecated initEvent() with recommended event constructor, Event(), as per MDN web docs specification.
https://developer.mozilla.org/en-US/docs/Web/API/Event/initEvent#browser_compatibility
2024-01-21 21:02:18 -05:00
cbe 386eaa0a69 Fix language/subtitle switcher when using gamepad
Raising the event code `13` (Enter) should be a lot more stable since `0`
is just the default and not assigned to any actual key [1]. This keycode
also has been standardized early enough to change it at this crucial part
of gamepad handling in my opinion.

[1] https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/keyCode

Fixes #3755
2023-10-15 01:25:15 -04:00
Bill Thornton f35a8151e0 Add prefer optional chaining rule 2023-07-06 13:39:48 -04:00
Aimekram 832b9eaf4d fix: eslint no-shadow errors 2022-10-16 16:04:37 +02:00
Bill Thornton b426b6e2bf Fix sonarjs prefer-single-boolean-return 2022-10-11 03:11:41 -04:00
Bill Thornton f60b7686d0 Remove unused variables 2021-03-23 11:28:16 -04:00
MrTimscampi 7d9208e951 WIP 2020-11-05 23:09:09 +00:00
dkanada 237e8ddc4c manual changes for no-var eslint rule 2020-10-08 00:47:23 +09:00
dkanada 39eddeb205 run eslint to fix most var instances 2020-10-07 21:12:14 +09:00
MrTimscampi 58361ce70c Remove focus-prevent-scroll, migrate gamepadtokey and chromecastHelper to ES6 2020-08-06 23:56:29 +02:00
MrTimscampi 5e1b6acffe Disallow block padding 2020-07-27 08:06:46 +02:00
MrTimscampi 9e3ca706c4 Force the use of single quotes 2020-05-04 12:44:12 +02:00
dkanada 1843927576 move some files to more reasonable locations 2020-04-24 23:37:27 +09:00