better IE9 handling

This commit is contained in:
Fabian Jakobs 2011-08-18 17:36:55 +02:00
commit 5af05772eb
4 changed files with 5 additions and 4 deletions

View file

@ -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]))

View file

@ -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;