diff --git a/src/panels/lovelace/common/directives/long-press-directive.ts b/src/panels/lovelace/common/directives/long-press-directive.ts index 832721068b..37df395ea0 100644 --- a/src/panels/lovelace/common/directives/long-press-directive.ts +++ b/src/panels/lovelace/common/directives/long-press-directive.ts @@ -123,7 +123,7 @@ class LongPress extends HTMLElement implements LongPress { if (this.held) { element.dispatchEvent(new Event("ha-hold")); } else if (options.hasDoubleClick) { - if ((ev as MouseEvent).detail === 1) { + if ((ev as MouseEvent).detail === 1 || ev.type === "keyup") { this.dblClickTimeout = window.setTimeout(() => { element.dispatchEvent(new Event("ha-click")); }, 250);