Fix awesomplete keydown
This commit is contained in:
parent
2ea8b012a8
commit
36cdcd0dbd
@ -948,6 +948,17 @@ Blockly.FieldTextInput.prototype.showInlineEditor_ = function(quietInput) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|
||||||
|
htmlInput.onkeydown = function (e) {
|
||||||
|
if (e.keyCode == 13 && awesomplete.opened && awesomplete.selected) {
|
||||||
|
e.stopPropagation();
|
||||||
|
e.stopImmediatePropagation();
|
||||||
|
e.preventDefault();
|
||||||
|
awesomplete.select();
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// --- awesomplete
|
// --- awesomplete
|
||||||
var awesomplete = new Awesomplete(htmlInput, {
|
var awesomplete = new Awesomplete(htmlInput, {
|
||||||
minChars: 4,
|
minChars: 4,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user