Check if a gesture is in progress before doing keyboard nav (#3950)

* Check if a gesture is in progress before doing keyboard nav
This commit is contained in:
alschmiedt
2020-06-10 10:28:02 -07:00
committed by GitHub
parent a23d2fb9d0
commit 1349017c8a
2 changed files with 1 additions and 2 deletions

View File

@@ -189,7 +189,7 @@ Blockly.onKeyDown = function(e) {
// Pressing esc closes the context menu.
Blockly.hideChaff();
Blockly.navigation.onBlocklyAction(Blockly.navigation.ACTION_EXIT);
} else if (Blockly.navigation.onKeyPress(e)) {
} else if (!Blockly.Gesture.inProgress() && Blockly.navigation.onKeyPress(e)) {
// If the keyboard or field handled the key press return.
return;
} else if (e.keyCode == Blockly.utils.KeyCodes.BACKSPACE ||

View File

@@ -18,7 +18,6 @@ goog.require('Blockly.ASTNode');
goog.require('Blockly.utils.Coordinate');
goog.require('Blockly.user.keyMap');
/**
* A function to call to give feedback to the user about logs, warnings, and
* errors. You can override this to customize feedback (e.g. warning sounds,