Skip to content

Conversation

@tracygardner
Copy link
Contributor

Motivation

  • Pressing the t shortcut to open the toolbox also inserted the letter into the toolbox search input and could trigger synchronous indexing, causing a noticeable delay.

Description

  • Add a capture-phase keydown listener inside createBlocklyWorkspace that prevents the default action for an unmodified t keypress when the active element is not a text input or contentEditable, stopping the character from reaching the toolbox search field.
  • The handler explicitly ignores events with Ctrl/Meta/Alt modifiers and does not change typing behavior when focus is inside inputs or editable regions.

Testing

  • No automated tests were run for this change.

Codex Task

@tracygardner tracygardner merged commit aed1d5f into main Jan 19, 2026
5 checks passed
@tracygardner tracygardner deleted the codex/fix-shortcut-t-in-toolbox-search branch January 19, 2026 17:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants