mirror of
https://github.com/home-assistant/frontend.git
synced 2025-10-22 01:59:46 +00:00
Use key instead of keycode for key event (#16625)
This commit is contained in:
@@ -324,7 +324,7 @@ export class HaVoiceCommandDialog extends LitElement {
|
||||
|
||||
private _handleKeyUp(ev: KeyboardEvent) {
|
||||
const input = ev.target as HaTextField;
|
||||
if (ev.keyCode === 13 && input.value) {
|
||||
if (ev.key === "Enter" && input.value) {
|
||||
this._processText(input.value);
|
||||
input.value = "";
|
||||
this._showSendButton = false;
|
||||
|
Reference in New Issue
Block a user