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