Research Survey: Tell us about your experience with Blockly
Start survey
Stay organized with collections
Save and categorize content based on your preferences.
blockly > ShortcutItems
ShortcutItems namespace
Enumerations
Enumeration |
Description |
names |
Object holding the names of the default shortcut items. |
Functions
Function |
Description |
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 |
registerEscape() |
Keyboard shortcut to hide chaff on escape. |
registerPaste() |
Keyboard shortcut to paste a block on ctrl+v, cmd+v, or alt+v. |
registerRedo() |
Keyboard shortcut to redo the previous action on ctrl+shift+z, cmd+shift+z, or alt+shift+z. |
registerUndo() |
Keyboard shortcut to undo the previous action on ctrl+z, cmd+z, or alt+z. |
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-09-18 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-09-18 UTC."],[[["The `ShortcutItems` namespace manages keyboard shortcuts for common Blockly actions like copy, paste, cut, delete, undo, and redo."],["It provides functions to register these shortcuts with their respective keyboard combinations for different operating systems."],["The `names` enumeration holds the names of the default shortcut items for easy reference."],["Shortcut functions provide functionality for copy, cut, delete, escape, paste, redo, and undo actions within Blockly."]]],[]]