diff --git a/src/static/js/ace2_inner.js b/src/static/js/ace2_inner.js index 555512118..1120b2c12 100644 --- a/src/static/js/ace2_inner.js +++ b/src/static/js/ace2_inner.js @@ -1923,7 +1923,11 @@ function Ace2Inner(){ if (charsLeft === 0) { var index = 0; - browser.msie = false; // Temp fix to resolve enter and backspace issues.. + + if (browser.msie && parseInt(browser.version) >= 11) { + browser.msie = false; // Temp fix to resolve enter and backspace issues.. + // Note that this makes MSIE behave like modern browsers.. + } if (browser.msie && line == (rep.lines.length() - 1) && lineNode.childNodes.length === 0) { // best to stay at end of last empty div in IE