From 5e8da9747454baf6e8ff6743284ca0b44ed775bb Mon Sep 17 00:00:00 2001 From: Adam Jimenez Date: Wed, 27 Jul 2011 10:21:14 +0200 Subject: [PATCH] #304 wasn't merged correctly. This is a Fix. "Make keyboard infrastructure route keys like []^$ the right way." --- lib/ace/keyboard/textinput.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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