Skip to content

Commit

Permalink
Fix calls to sendKey
Browse files Browse the repository at this point in the history
  • Loading branch information
Cezar Pauxis committed Jun 21, 2022
1 parent 1b3530a commit 31e16d4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tv-card.js
Original file line number Diff line number Diff line change
Expand Up @@ -258,9 +258,9 @@ class TVCardServices extends LitElement {
let action = e.currentTarget.action;

if (custom_keys[action]) {
this.sendKey(custom_keys[action]);
this.sendKey(custom_keys[action][0]);
} else if (custom_sources[action]) {
this.changeSource(custom_sources[action]);
this.changeSource(custom_sources[action][0]);
}

if (this._config.enable_button_feedback === undefined || this._config.enable_button_feedback) fireEvent(window, "haptic", "light");
Expand Down

0 comments on commit 31e16d4

Please sign in to comment.