mirror of
https://github.com/google/blockly.git
synced 2026-01-10 10:27:08 +01:00
Initial commit for changing key mappings (#2787)
* Added ability to easily change key mappings
This commit is contained in:
@@ -74,6 +74,7 @@ Blockly.inject = function(container, opt_options) {
|
||||
var workspace = Blockly.createMainWorkspace_(svg, options, blockDragSurface,
|
||||
workspaceDragSurface);
|
||||
Blockly.setTheme(options.theme);
|
||||
Blockly.user.keyMap.setKeyMap(options.keyMap);
|
||||
|
||||
Blockly.init_(workspace);
|
||||
Blockly.mainWorkspace = workspace;
|
||||
|
||||
Reference in New Issue
Block a user