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.