Skip to content

Commit

Permalink
use keyup handler so input box updates before we check it
Browse files Browse the repository at this point in the history
  • Loading branch information
Nerwyn committed Aug 12, 2023
1 parent 7ad7b26 commit dfccd12
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions android-tv-card.js
Original file line number Diff line number Diff line change
Expand Up @@ -545,7 +545,7 @@ class TVCardServices extends LitElement {
* Event handler for keyboard events
* @param {Event} e
*/
onKeyDown(e) {
onKeyUp(e) {
e.stopImmediatePropagation();
let data = {
entity_id: this._config.adb_id,
Expand Down Expand Up @@ -602,7 +602,7 @@ class TVCardServices extends LitElement {
<input
id="kInput"
onfocus="this.value=''"
@keydown="${this.onKeyDown}"
@keyup="${this.onKeyUp}"
>
</input>
</div>
Expand Down

0 comments on commit dfccd12

Please sign in to comment.