Intercept default search shortcut and focus our search input on data table pages (#23209)

Intercept default search shortcut on data table pages
This commit is contained in:
Jan-Philipp Benecke
2024-12-11 08:34:27 +01:00
committed by GitHub
parent ce5ce37de7
commit bf624f5ca7
5 changed files with 36 additions and 12 deletions

View File

@@ -818,8 +818,10 @@ export class HaScriptEditor extends KeyboardShortcutMixin(LitElement) {
}
}
protected handleKeyboardSave() {
this._saveScript();
protected supportedShortcuts(): SupportedShortcuts {
return {
s: () => this._saveScript(),
};
}
static get styles(): CSSResultGroup {