The latest version of Blockly includes new features and bug fixes for the keyboard navigation experience. Please also check out the @blockly/keyboard-navigation plugin at v2.0.0 which accompanies this release of Blockly.
What's Changed
New features ✨
feat: Add support for keyboard navigation into mutator workspaces. by @gonfunko in https://github.com/google/blockly/pull/9151
feat: Run keyboard plugin tests in CI by @BenHenning in https://github.com/google/blockly/pull/9135
feat: make comment editor separately focusable from comment itself by @maribethb in https://github.com/google/blockly/pull/9154
feat: Add support for keyboard navigation in/to workspace comments. by @gonfunko in https://github.com/google/blockly/pull/9182
feat: add copy api and paste into correct workspace by @maribethb in https://github.com/google/blockly/pull/9215
Bug fixes 🐛
fix: Fix navigation for blocks with multiple statement inputs. by @gonfunko in https://github.com/google/blockly/pull/9143
fix: Add isCopyable to the ICopyable interface and use it by @RoboErikG in https://github.com/google/blockly/pull/9134
fix: Dispatch keyboard events with the workspace they occurred on. by @gonfunko in https://github.com/google/blockly/pull/9137
fix: caret position when editing block comments by @maribethb in https://github.com/google/blockly/pull/9153
fix: tweak redo shortcut order to match convention by @microbit-matt-hillsdon in https://github.com/google/blockly/pull/9169
fix: clear touch identifier on comment text area pointerdown by @riknoll in https://github.com/google/blockly/pull/9172
fix: Fix loss of focus when un/redoing block deletions or moves. by @gonfunko in https://github.com/google/blockly/pull/9195
fix: Short-circuit node lookups for missing IDs by @BenHenning in https://github.com/google/blockly/pull/9174
fix: Ensure focus changes when tabbing fields by @BenHenning in https://github.com/google/blockly/pull/9173
~~fix: Auto close drop-down divs on lost focus by @BenHenning in https://github.com/google/blockly/pull/9175~~ (reverted)
fix: check for a drag specifically rather than a gesture for shortcuts by @maribethb in https://github.com/google/blockly/pull/9194
fix: Improve workspace comment keyboard navigation behavior. by @gonfunko in https://github.com/google/blockly/pull/9211
~~fix: Auto close drop-down divs on lost focus (reapply) by @BenHenning in https://github.com/google/blockly/pull/9213~~ (reverted)
fix: Prevent loss of focus when deleting a workspace comment. by @gonfunko in https://github.com/google/blockly/pull/9200
fix: Fix more browser tests by @RoboErikG in https://github.com/google/blockly/pull/9183
~~fix: Auto-close widget divs on lost focus by @BenHenning in https://github.com/google/blockly/pull/9216~~ (reverted)
Cleanup ♻️
refactor: Make the cursor use the focus manager for tracking the current node. by @gonfunko in https://github.com/google/blockly/pull/9142
refactor(interfaces): Make type predicates more robust by @cpcallen in https://github.com/google/blockly/pull/9150
refactor(CSS): move box-sizing from keyboard nav plugin to core/css.ts by @cpcallen in https://github.com/google/blockly/pull/9201
refactor: Ensure that the workspace cursor is never null. by @gonfunko in https://github.com/google/blockly/pull/9210
Reverted changes ⎌
revert: "fix: Auto close drop-down divs on lost focus" by @cpcallen in https://github.com/google/blockly/pull/9204
fix: Revert drop down and widget div PRs by @BenHenning in https://github.com/google/blockly/pull/9222
Full Changelog: https://github.com/google/blockly/compare/blockly-v12.1.0...blockly-v12.2.0