mirror of
https://github.com/home-assistant/frontend.git
synced 2025-11-09 19:09:48 +00:00
Use key instead of keycode for key event (#16625)
This commit is contained in:
@@ -93,7 +93,7 @@ class StepFlowForm extends LitElement {
|
||||
}
|
||||
|
||||
private _handleKeyDown = (ev: KeyboardEvent) => {
|
||||
if (ev.keyCode === 13) {
|
||||
if (ev.key === "Enter") {
|
||||
this._submitStep();
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user