Skip to content
This repository was archived by the owner on Jun 23, 2026. It is now read-only.
This repository was archived by the owner on Jun 23, 2026. It is now read-only.

Choose which blocks to drag based on modifier key #398

Description

@rachel-fenichel

Once RaspberryPiFoundation/blockly#8870 is fixed in core (and released in a beta for use), override shouldHealStack to return false if shift was pressed and true otherwise.

This corresponds to a single-block drag with m (default) and a multi-block drag with M.

As a first pass, this will require passing additional information into the drag strategy through side channels in the event, as I did with the direction of movement.

Later, the information should be passed in directly. I think that we may change the dragging code to accept a keyboard event | pointer event instead of just a pointer event.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    Status
    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions