From 25c702ad2bb1fb7d1f93a2237b2e0035e81d3dc4 Mon Sep 17 00:00:00 2001 From: Simon Lamon <32477463+silamon@users.noreply.github.com> Date: Mon, 15 Apr 2024 20:20:45 +0200 Subject: [PATCH] Don't display keyboard shortcut hints in quickbar if keyboard shortcuts are disabled (#20527) Fix forgotten hint shortcut tip --- src/panels/lovelace/hui-root.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/panels/lovelace/hui-root.ts b/src/panels/lovelace/hui-root.ts index ce1d4d3d43b1..6226897809a3 100644 --- a/src/panels/lovelace/hui-root.ts +++ b/src/panels/lovelace/hui-root.ts @@ -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, }); }