BUG:
If I select all text and then delete with a backspace, only the last character is deleted in the buffer, and the autocomplete still shows with the highlight.
SOLUTION:
Adding a trigger on keyup seems to solve the problem.
add this line in initTextarea (line 97)
elmInputBox.bind('keyup', onInputBoxKeyUp);
and add a new function (line 392)
function onInputBoxKeyUp(e) {
if (e.keyCode === KEY.BACKSPACE) {
syntaxMessage = getInputBoxValue()
if(!syntaxMessage){
resetBuffer();
hideAutoComplete();
}
return;
}
}
BUG: If I select all text and then delete with a backspace, only the last character is deleted in the buffer, and the autocomplete still shows with the highlight.
SOLUTION: Adding a trigger on keyup seems to solve the problem.
add this line in
initTextarea
(line 97)elmInputBox.bind('keyup', onInputBoxKeyUp);
and add a new function (line 392)