Merge pull request #359 from adamjimenez/master

This is a Fix for: "Make keyboard infrastructure route keys like []^$ the right way."
This commit is contained in:
Fabian Jakobs 2011-07-28 02:29:26 -07:00
commit f31f5842f4

View file

@ -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