Check for duplicates
Description
Keyboard shortcuts (Ctrl+C, Ctrl+X, Delete) do not work when blocks are selected using lasso selection (drag-to-select), especially when the multiple selection mode is toggled via an external button rather than holding the Shift key.
Expected Behavior
Selected blocks should be deleted or copied.
Actual Behavior
Nothing happens because Blockly.common.getSelected() does not always return a MultiselectDraggable instance in this specific state, even though dragSelection is populated.
Reproduction steps
- Enable multi-select mode (e.g., via a toggle button that activates the mode).
- Select a group of blocks using the lasso/rectangular selection.
- Press Delete or Ctrl+C.
Stack trace
Screenshots
No response
Browsers
No response
Check for duplicates
Description
Keyboard shortcuts (Ctrl+C, Ctrl+X, Delete) do not work when blocks are selected using lasso selection (drag-to-select), especially when the multiple selection mode is toggled via an external button rather than holding the Shift key.
Expected Behavior
Selected blocks should be deleted or copied.
Actual Behavior
Nothing happens because
Blockly.common.getSelected()does not always return aMultiselectDraggableinstance in this specific state, even thoughdragSelectionis populated.Reproduction steps
Stack trace
Screenshots
No response
Browsers
No response