Skip to content

Keyboard shortcuts (Copy/Cut/Delete) not working with Lasso selection in certain states #144

Description

@bmouse116

Check for duplicates

  • I have searched for similar issues before opening a new one.

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

  1. Enable multi-select mode (e.g., via a toggle button that activates the mode).
  2. Select a group of blocks using the lasso/rectangular selection.
  3. Press Delete or Ctrl+C.

Stack trace

Screenshots

No response

Browsers

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions