Skip to content

Commit

Permalink
Don't display keyboard shortcut hints in quickbar if keyboard shortcu…
Browse files Browse the repository at this point in the history
…ts are disabled (#20527)

Fix forgotten hint shortcut tip
  • Loading branch information
silamon authored Apr 15, 2024
1 parent 6516597 commit 25c702a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/panels/lovelace/hui-root.ts
Original file line number Diff line number Diff line change
Expand Up @@ -640,7 +640,9 @@ class HUIRoot extends LitElement {
private _showQuickBar(): void {
showQuickBar(this, {
commandMode: false,
hint: this.hass.localize("ui.tips.key_e_hint"),
hint: this.hass.enableShortcuts
? this.hass.localize("ui.tips.key_e_hint")
: undefined,
});
}

Expand Down

0 comments on commit 25c702a

Please sign in to comment.