bcakmakoglu / vue-flow

A highly customizable Flowchart component for Vue 3. Features seamless zoom & pan 🔎, additional components like a Minimap 🗺 and utilities to interact with state and graph.
https://vueflow.dev/
MIT License
4.03k stars 259 forks source link

🐛 [BUG]: When typing, CMD + Backspace or Shift + Backspace can delete selected element #1385

Closed bcakmakoglu closed 6 months ago

bcakmakoglu commented 6 months ago

Discussed in https://github.com/bcakmakoglu/vue-flow/discussions/1383

Originally posted by **LefanTan** April 23, 2024 Hi. I noticed that a Node is selected, and I'm current typing on an Input/Textarea, sometimes entering "Shift+Backspace" may delete the currently selected node, even though the Input/Textarea element is in focus. Here's a GIF demo, where I'm typing random stuff and clicking `Shift + Backspace`, which will unexpectedly delete the currently selected node. This feels like an unintended bug? ![move](https://github.com/bcakmakoglu/vue-flow/assets/12474777/77f0c2a7-2a3a-49d7-bfaf-d2a347808be0) You can try it here Demo: https://stackblitz.com/edit/vitejs-vite-pffl1o?file=src%2FApp.vue
bcakmakoglu commented 6 months ago

Fixed with 1.33.6