mirror of
https://github.com/home-assistant/frontend.git
synced 2025-11-13 04:50:29 +00:00
Add new shortcuts to shortcuts dialog (#26836)
This commit is contained in:
@@ -88,7 +88,10 @@ export class HaAutomationRow extends LitElement {
|
||||
(ev.ctrlKey || ev.metaKey) &&
|
||||
!ev.shiftKey &&
|
||||
!ev.altKey &&
|
||||
(ev.key === "c" || ev.key === "x" || ev.key === "Delete")
|
||||
(ev.key === "c" ||
|
||||
ev.key === "x" ||
|
||||
ev.key === "Delete" ||
|
||||
ev.key === "Backspace")
|
||||
)
|
||||
) {
|
||||
return;
|
||||
@@ -119,7 +122,7 @@ export class HaAutomationRow extends LitElement {
|
||||
return;
|
||||
}
|
||||
|
||||
if (ev.key === "Delete") {
|
||||
if (ev.key === "Delete" || ev.key === "Backspace") {
|
||||
fireEvent(this, "delete-row");
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user