better IE9 handling
This commit is contained in:
parent
4b7a0a6313
commit
5af05772eb
4 changed files with 5 additions and 4 deletions
|
|
@ -99,7 +99,7 @@ var TextInput = function(parentNode, host) {
|
|||
};
|
||||
|
||||
var onPropertyChange = function(e) {
|
||||
if (useragent.isIE && text.value.charCodeAt(0) > 128) return;
|
||||
if (useragent.isOldIE && text.value.charCodeAt(0) > 128) return;
|
||||
setTimeout(function() {
|
||||
if (!inCompostion)
|
||||
sendText();
|
||||
|
|
@ -150,7 +150,7 @@ var TextInput = function(parentNode, host) {
|
|||
};
|
||||
|
||||
event.addCommandKeyListener(text, host.onCommandKey.bind(host));
|
||||
if (useragent.isIE) {
|
||||
if (useragent.isOldIE) {
|
||||
var keytable = { 13:1, 27:1 };
|
||||
event.addListener(text, "keyup", function (e) {
|
||||
if (inCompostion && (!text.value || keytable[e.keyCode]))
|
||||
|
|
|
|||
|
|
@ -338,6 +338,7 @@ var VirtualRenderer = function(container, theme) {
|
|||
|
||||
this.moveTextAreaToCursor = function(textarea) {
|
||||
// in IE the native cursor always shines through
|
||||
// this persists in IE9
|
||||
if (useragent.isIE)
|
||||
return;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue