diff --git a/lib/ace/keyboard/textinput.js b/lib/ace/keyboard/textinput.js index d9dd3610..eba1fa1e 100644 --- a/lib/ace/keyboard/textinput.js +++ b/lib/ace/keyboard/textinput.js @@ -64,9 +64,9 @@ var TextInput = function(parentNode, host) { if (value.charCodeAt(value.length-1) == PLACEHOLDER.charCodeAt(0)) { value = value.slice(0, -1); if (value) - host.onTextInput(value); + host.onTextInput(value, !pasted); } else { - host.onTextInput(value); + host.onTextInput(value, !pasted); } // If editor is no longer focused we quit immediately, since