fix command keys in Opera. fix #431
This commit is contained in:
parent
2c92472b8f
commit
b9266a1339
2 changed files with 6 additions and 5 deletions
|
|
@ -47,7 +47,8 @@ var TextInput = function(parentNode, host) {
|
|||
|
||||
var text = dom.createElement("textarea");
|
||||
if (useragent.isTouchPad)
|
||||
text.setAttribute('x-palm-disable-auto-cap',true);
|
||||
text.setAttribute("x-palm-disable-auto-cap", true);
|
||||
|
||||
text.style.left = "-10000px";
|
||||
parentNode.appendChild(text);
|
||||
|
||||
|
|
@ -63,7 +64,7 @@ var TextInput = function(parentNode, host) {
|
|||
try {
|
||||
text.select();
|
||||
} catch (e) {}
|
||||
};
|
||||
}
|
||||
|
||||
function sendText(valueToSend) {
|
||||
if (!copied) {
|
||||
|
|
@ -159,10 +160,10 @@ var TextInput = function(parentNode, host) {
|
|||
setTimeout(onCompositionEnd, 0);
|
||||
if ((text.value.charCodeAt(0)|0) < 129) {
|
||||
return;
|
||||
};
|
||||
}
|
||||
inCompostion ? onCompositionUpdate() : onCompositionStart();
|
||||
});
|
||||
};
|
||||
}
|
||||
|
||||
if ("onpropertychange" in text && !("oninput" in text))
|
||||
event.addListener(text, "propertychange", onPropertyChange);
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
Subproject commit 3fdfcc071929aa96dff4f2d710dce10cda164fa7
|
||||
Subproject commit e6042025584ad40caa7adcce3cbd2cee62007449
|
||||
Loading…
Add table
Add a link
Reference in a new issue