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");
|
var text = dom.createElement("textarea");
|
||||||
if (useragent.isTouchPad)
|
if (useragent.isTouchPad)
|
||||||
text.setAttribute('x-palm-disable-auto-cap',true);
|
text.setAttribute("x-palm-disable-auto-cap", true);
|
||||||
|
|
||||||
text.style.left = "-10000px";
|
text.style.left = "-10000px";
|
||||||
parentNode.appendChild(text);
|
parentNode.appendChild(text);
|
||||||
|
|
||||||
|
|
@ -63,7 +64,7 @@ var TextInput = function(parentNode, host) {
|
||||||
try {
|
try {
|
||||||
text.select();
|
text.select();
|
||||||
} catch (e) {}
|
} catch (e) {}
|
||||||
};
|
}
|
||||||
|
|
||||||
function sendText(valueToSend) {
|
function sendText(valueToSend) {
|
||||||
if (!copied) {
|
if (!copied) {
|
||||||
|
|
@ -159,10 +160,10 @@ var TextInput = function(parentNode, host) {
|
||||||
setTimeout(onCompositionEnd, 0);
|
setTimeout(onCompositionEnd, 0);
|
||||||
if ((text.value.charCodeAt(0)|0) < 129) {
|
if ((text.value.charCodeAt(0)|0) < 129) {
|
||||||
return;
|
return;
|
||||||
};
|
}
|
||||||
inCompostion ? onCompositionUpdate() : onCompositionStart();
|
inCompostion ? onCompositionUpdate() : onCompositionStart();
|
||||||
});
|
});
|
||||||
};
|
}
|
||||||
|
|
||||||
if ("onpropertychange" in text && !("oninput" in text))
|
if ("onpropertychange" in text && !("oninput" in text))
|
||||||
event.addListener(text, "propertychange", onPropertyChange);
|
event.addListener(text, "propertychange", onPropertyChange);
|
||||||
|
|
|
||||||
|
|
@ -1 +1 @@
|
||||||
Subproject commit 3fdfcc071929aa96dff4f2d710dce10cda164fa7
|
Subproject commit e6042025584ad40caa7adcce3cbd2cee62007449
|
||||||
Loading…
Add table
Add a link
Reference in a new issue