Blockly. ShortcutItems
Enumeration
names
string
Object holding the names of the default shortcut items.
Value |
|
---|---|
ESCAPE |
|
DELETE |
|
COPY |
|
CUT |
|
PASTE |
|
UNDO |
|
REDO |
Property
names
string
Object holding the names of the default shortcut items.
Value |
|
---|---|
ESCAPE |
|
DELETE |
|
COPY |
|
CUT |
|
PASTE |
|
UNDO |
|
REDO |
Methods
registerCopy
registerCopy()
Keyboard shortcut to copy a block on ctrl+c, cmd+c, or alt+c.
registerCut
registerCut()
Keyboard shortcut to copy and delete a block on ctrl+x, cmd+x, or alt+x.
registerDefaultShortcuts
registerDefaultShortcuts()
Registers all default keyboard shortcut item. This should be called once per instance of KeyboardShortcutRegistry.
registerDelete
registerDelete()
Keyboard shortcut to delete a block on delete or backspace
registerEscape
registerEscape()
Keyboard shortcut to hide chaff on escape.
registerPaste
registerPaste()
Keyboard shortcut to paste a block on ctrl+v, cmd+v, or alt+v.
registerRedo
registerRedo()
Keyboard shortcut to redo the previous action on ctrl+shift+z, cmd+shift+z, or alt+shift+z.
registerUndo
registerUndo()
Keyboard shortcut to undo the previous action on ctrl+z, cmd+z, or alt+z.