fix #1671 Cannot use backspace in Android Chrome
This commit is contained in:
parent
3ab631640b
commit
bfdd7239d1
1 changed files with 2 additions and 0 deletions
|
|
@ -216,6 +216,8 @@ var TextInput = function(parentNode, host) {
|
||||||
} else if (data == PLACEHOLDER.charAt(0)) {
|
} else if (data == PLACEHOLDER.charAt(0)) {
|
||||||
if (afterContextMenu)
|
if (afterContextMenu)
|
||||||
host.execCommand("del", {source: "ace"});
|
host.execCommand("del", {source: "ace"});
|
||||||
|
else // some versions of android do not fire keydown when pressing backspace
|
||||||
|
host.execCommand("backspace", {source: "ace"});
|
||||||
} else {
|
} else {
|
||||||
if (data.substring(0, 2) == PLACEHOLDER)
|
if (data.substring(0, 2) == PLACEHOLDER)
|
||||||
data = data.substr(2);
|
data = data.substr(2);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue