Skip to content

Database diagrams editor that allows you to visualize and design your DB with a single query.

fix: support Delete key in addition to Backspace for canvas deletion (#991)

Jonathan Fishner94d7d3f52243
diff --git a/src/pages/editor-page/canvas/canvas.tsx b/src/pages/editor-page/canvas/canvas.tsx
index 3f560e6d..ffe1aa0e 100644
--- a/src/pages/editor-page/canvas/canvas.tsx
+++ b/src/pages/editor-page/canvas/canvas.tsx
@@ -1573,6 +1573,7 @@ export const Canvas: React.FC<CanvasProps> = ({ initialTables }) => {
snapGrid={[20, 20]}
onPaneClick={onPaneClickHandler}
connectionLineComponent={ConnectionLine}
+ deleteKeyCode={['Backspace', 'Delete']}
>
<Controls
position="top-left"