Skip to content

add displayText for shortcut items #9738

@maribethb

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

Metadata

Metadata

Assignees

Labels

issue: feature requestDescribes a new feature and why it should be added

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions