Skip to content

feat: add optional new shortcuts for block/workspace navigation - #10090

Merged
maribethb merged 3 commits into
RaspberryPiFoundation:mainfrom
maribethb:extra-shortcuts
Jun 29, 2026
Merged

feat: add optional new shortcuts for block/workspace navigation#10090
maribethb merged 3 commits into
RaspberryPiFoundation:mainfrom
maribethb:extra-shortcuts

Conversation

@maribethb

Copy link
Copy Markdown
Contributor

The basics

The details

Resolves

Backports the navigation shortcuts from here with changes for v13 APIs
Fixes #9997 while we're at it (for certain problems with full-block fields, did not change behavior for end as per my last comment there)
Updates docs

Proposed Changes

Adds new navigation shortcuts for jumping around to start/end of block/workspace/stack. These are optional and can be installed by calling Blockly.ShortcutItems.registerNavigationShortcuts()

Reason for Changes

missing them from the beta test

Test Coverage

Added tests

Documentation

Added docs

Additional Information

@maribethb
maribethb requested a review from a team as a code owner June 29, 2026 18:38
@maribethb
maribethb requested a review from lizschwab June 29, 2026 18:38
@github-actions github-actions Bot added the PR: feature Adds a feature label Jun 29, 2026

@lizschwab lizschwab left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should be using KeyCodes.CTRL_CMD here instead of CTRL and META to be consistent and take advantage of the functionality where we switch based on userAgent.

Comment thread packages/blockly/core/shortcut_items.ts

@lizschwab lizschwab left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes look good, good to merge once tests pass

@maribethb
maribethb merged commit aad4618 into RaspberryPiFoundation:main Jun 29, 2026
4 checks passed
@maribethb
maribethb deleted the extra-shortcuts branch July 7, 2026 20:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

PR: feature Adds a feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

End and Home shortcuts not behaving as expected on blocks with text inputs

2 participants