mirror of
https://github.com/google/blockly.git
synced 2026-01-11 10:57:07 +01:00
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:
@@ -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 ||
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user