Skip to main content

blockly > ShortcutItems

ShortcutItems namespace

Enumerations

Enumeration

Description

names

Object holding the names of the default shortcut items.

Functions

Function

Description

registerArrowNavigation()

Registers keyboard shortcuts to navigate around the Blockly interface.

registerCleanup()

Registers keyboard shortcut to clean up the workspace.

registerCopy()

Keyboard shortcut to copy a block on ctrl+c, cmd+c, or alt+c.

registerCut()

Keyboard shortcut to copy and delete a block on ctrl+x, cmd+x, or alt+x.

registerDelete()

Keyboard shortcut to delete a block on delete or backspace

registerDisconnectBlock()

Registers keyboard shortcut to disconnect the focused block.

registerDuplicate()

Registers keyboard shortcut to duplicate a block or workspace comment.

registerEscape()

Keyboard shortcut to hide chaff on escape.

registerFocusToolbox()

Registers keyboard shortcut to focus the toolbox.

registerFocusWorkspace()

Registers keyboard shortcut to focus the workspace.

registerHeadingNavigation()

Registers keyboard shortcuts to jump between headings (labels) in a flyout.

Pressing H moves focus to the next heading; Shift+H moves focus to the previous heading. The shortcut only activates when focus is already inside the flyout; otherwise it returns false so other handlers may take over.

registerKeyboardNavigationShortcuts()

Registers an extended set of keyboard shortcuts used to support deep keyboard navigation of Blockly.

registerMovementShortcuts()

Registers keyboard shortcuts for keyboard-driven movement of workspace elements.

registerPaste()

Keyboard shortcut to paste a block on ctrl+v, cmd+v, or alt+v.

registerPerformAction()

Registers keyboard shortcut to perform an action on the focused element.

registerReadExtendedInformation()

Registers keyboard shortcut to announce an extended description of the focused element.

registerReadInformation()

Registers keyboard shortcut to announce information about the focused element.

registerRedo()

Keyboard shortcut to redo the previous action on ctrl+shift+z, cmd+shift+z, or alt+shift+z.

registerScreenReaderShortcuts()

Registers keyboard shortcuts used to announce screen reader information.

registerShowContextMenu()

Keyboard shortcut to show the context menu on ctrl/cmd+Enter, shift+F10, and the menu key.

registerShowTooltip()

Registers keyboard shortcut to display the tooltip for the focused element.

registerStackNavigation()

Registers keyboard shortcuts to jump between stacks/top-level items on the workspace.

registerToggleScreenreaderMode()

Registers keyboard shortcut to toggle on or off various behaviors that improve the experience for individuals using screenreaders.

registerUndo()

Keyboard shortcut to undo the previous action on ctrl+z, cmd+z, or alt+z.