Ignore spurious kinds of keydown events

This commit is contained in:
Eevee (Evelyn Woods) committed 2021-01-05 22:07:04 -07:00
1 parent b5b7ccbc46
commit 999467bb1f
1 file changed
+3
+3
View File
@@ -467,6 +467,9 @@ class Player extends PrimaryView {
key_target.addEventListener('keydown', ev => {
if (! this.active)
return;
// Ignore IME composition and repeat events
if (ev.isComposing || ev.keyCode === 229 || ev.repeat)
return;
this.using_touch = false;
if (ev.key === 'p' || ev.key === 'Pause') {