Keydown event fires continuously

When using window.addEventListenter("keydown", ...) as well as onkeydown attached to an input element continuous events are fired even though only one key is pressed.

Steps to reproduce:

  1. Focus input field
  2. Blur input field
  3. Refocus the same input field

→ Result: continuous keydown events are fired. This means if you entered the input field using the left arrow key, it would keep firing keydown events for the left arrow until leaving the input field.

This only happens on webos, not on a browser.

In webOS TV apps, the virtual keyboard is always enabled when the input has focus and cannot be disabled. If the input has focus, the virtual keyboard will process the input. And the keypress, keyup and keydown event handlers do not work on the virtual keyboard. So if you need to get the input value, please use input or change event for that input field. You can find more information in System UI Visibility. Thank you.

1 Like

I’m getting the exact same behavior in the Simulators (22,23,24) and it appears to be a major bug/issue. It only continuously keeps firing a Arrow keydown event on the last form input element. I made a video (which I slowed down) so you can visually see what is happening.

https://www.youtube.com/watch?v=ECvVgmO1wK0

It actually ends up stuck with focus stuck on the html body tag element (strange). The Continuous Arrow key event is from the RC and don’t stop until I use the Arrows on the RC.
If use the Arrow Keys of my Keyboard I’m fighting against continuous RC Arrow Key Event.
This appears to be a BUG with the Virtual Keyboard.

Sorry for the late reply. As mentioned above, please do not use keypress, keyup and keydown event handlers on the virtual keyboard, except for the Enter and Back keys. Thank you.