fix #1671 Cannot use backspace in Android Chrome

This commit is contained in:
nightwing 2013-11-05 21:07:29 +04:00
commit bfdd7239d1

View file

@ -216,6 +216,8 @@ var TextInput = function(parentNode, host) {
} else if (data == PLACEHOLDER.charAt(0)) {
if (afterContextMenu)
host.execCommand("del", {source: "ace"});
else // some versions of android do not fire keydown when pressing backspace
host.execCommand("backspace", {source: "ace"});
} else {
if (data.substring(0, 2) == PLACEHOLDER)
data = data.substr(2);