drawdb icon indicating copy to clipboard operation
drawdb copied to clipboard

[BUG] Delete keyboard shortcut listed in docs but not working in the editor

Open rounittxx opened this issue 1 month ago • 3 comments

Describe the bug The documentation shows DEL → Delete selected element, but the shortcut does not work anywhere in the editor (tables, notes, areas, relationships). This suggests the feature is documented but not implemented.

To Reproduce Steps to reproduce the behavior:

  1. Create any element
  2. Select it
  3. Press Delete
  4. Nothing happens

Expected behavior Pressing Delete removes the selected element as documented.

Screenshots

Image

https://github.com/user-attachments/assets/c914ea71-4e56-4946-a3b3-5bc3ac7841f0

I’ve attached:

📸 Screenshot from the official shortcut list

🎥 Screen recording showing that pressing Delete has no effect

Desktop: OS: macOS Browser: Google Chrome (latest) Reproducible: Yes (both normal and incognito mode)

rounittxx avatar Nov 22 '25 23:11 rounittxx

Hey! I’d like to work on this issue.

I’ve already reproduced the bug and confirmed that the Delete shortcut is listed in the documentation but never actually handled anywhere in the keyboard event flow. I’ve started investigating how keyboard interactions tie into the editor canvas, and I’m working on adding a proper global keydown handler that triggers the existing delete logic for all selectable elements.

Please assign this issue to me — I’ve already begun implementing a fix and will open a PR soon.Happy to collaborate or adjust the approach based on any guidance!

rounittxx avatar Nov 22 '25 23:11 rounittxx

no need for this global keydown handle. the del function in controlpanel needs to be fixed and you need to check if the selectedElement is getting set correctly

1ilit avatar Nov 23 '25 07:11 1ilit

Hi @1ilit I’ve resolved the issue and opened a pull request. Could you please review it and merge it if everything looks good? If any additional changes are needed, please let me know. Thank you!

rounittxx avatar Nov 25 '25 16:11 rounittxx