Skip to content

add displayText for shortcut items #9738

Closed
Closed

Description

@maribethb

Check for duplicates

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

Problem

keyboard shortcuts are not displayed on the screen in core, but may be displayed in some cases such as in help menus. having text associated with the shortcut would make it easier for developers to implement their own help menus.

Request

add an optional displayText property to KeyboardShortcut interface. it should be allowed to be a string or a function that returns a string.

being optional means this is not a breaking change

then update all existing keyboard shortcuts in core to provide text for all built-in shortcuts. the ones in core should be a function that returns a Blockly.Msg for the shortcut as it will be displayed in menus

Alternatives considered

No response

Additional context

No response

Activity

  1. self-assigned this
    on Apr 20, 2026
  2. moved this from Todo to In Progress in Blocklyon Apr 21, 2026
  3. moved this from In Progress to Done in Blocklyon Apr 22, 2026
  4. closed this as completedby moving to Done in Blocklyon Apr 22, 2026
  5. added theissue type on Jul 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

  • Status
    Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions