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

@ -250,7 +250,7 @@ window.__ace_shadowed__.transformTextarea = function(element) {
overflow: "auto",
fontSize: "14px"
};
if (!UA.isIE || UA.isIE >= 9) {
if (!UA.isOldIE) {
settingDivStyles.backgroundColor = "rgba(0, 0, 0, 0.6)";
} else {
settingDivStyles.backgroundColor = "#333";

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;

@ -1 +1 @@
Subproject commit 0ec977f5e49714ea0d1e560acb93a6e388c6d028
Subproject commit 26272d95b68ca4e1ca3d71188cee544a5806c58d