Initial commit for changing key mappings (#2787)

* Added ability to easily change key mappings
This commit is contained in:
alschmiedt
2019-08-13 13:37:01 -07:00
committed by GitHub
parent 4758b4aa55
commit 74fa3bb71a
11 changed files with 494 additions and 226 deletions

View File

@@ -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;