blockly-samples icon indicating copy to clipboard operation
blockly-samples copied to clipboard

Remove Gesture checks from shortcut preconditions

Open mikeharv opened this issue 6 months ago • 0 comments

Check for duplicates

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

Component

plugin-cross-tab-copy-paste

Problem

If keyboard-navigation is also used, new context menu items are added which use the precondition from the old shortcuts. This means the precondition expects that there is not an in-progress gesture in order to enable the option. Because a gesture is always in progress when right-clicking a block, the option always ends up disabled.

Request

Replace the gesture check with an in-progress drag check, similar to https://github.com/google/blockly/pull/9107

Alternatives considered

No response

Additional context

No response

mikeharv avatar Jun 18 '25 20:06 mikeharv