mirror of
https://github.com/home-assistant/frontend.git
synced 2025-11-09 02:49:51 +00:00
Use key instead of keycode for key event (#16625)
This commit is contained in:
@@ -130,7 +130,7 @@ class HaInputSelectForm extends LitElement {
|
||||
|
||||
private _handleKeyAdd(ev: KeyboardEvent) {
|
||||
ev.stopPropagation();
|
||||
if (ev.keyCode !== 13) {
|
||||
if (ev.key !== "Enter") {
|
||||
return;
|
||||
}
|
||||
this._addOption();
|
||||
|
||||
Reference in New Issue
Block a user