diff --git a/apps/dashboard/src/components/OgPlayground.tsx b/apps/dashboard/src/components/OgPlayground.tsx index cd69cc9..2cb38de 100644 --- a/apps/dashboard/src/components/OgPlayground.tsx +++ b/apps/dashboard/src/components/OgPlayground.tsx @@ -176,7 +176,7 @@ export function OgPlayground({ initialElements, width, height }: OgProviderProps return } - if (event.key === 'Backspace' && selectedElement) { + if ((event.key === 'Backspace' || event.key === 'Delete') && selectedElement) { event.preventDefault() removeElement(selectedElement) } @@ -245,7 +245,7 @@ export function OgPlayground({ initialElements, width, height }: OgProviderProps return (
-
+
@@ -260,7 +260,7 @@ export function OgPlayground({ initialElements, width, height }: OgProviderProps
-
+