Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
zry656565 committed Sep 30, 2016
1 parent 5ad8fec commit 91d6f28
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src-noconflict/ace.js
Expand Up @@ -1941,6 +1941,7 @@ var dom = require("../lib/dom");
var lang = require("../lib/lang");
var BROKEN_SETDATA = useragent.isChrome < 18;
var USE_IE_MIME_TYPE = useragent.isIE;
var CHROME_COMPOSITION = useragent.isChrome >= 53;

var TextInput = function(parentNode, host) {
var text = dom.createElement("textarea");
Expand Down Expand Up @@ -2299,6 +2300,9 @@ var TextInput = function(parentNode, host) {
if (e.type == "compositionend" && c.range) {
host.selection.setRange(c.range);
}
if (CHROME_COMPOSITION) {
onInput();
}
};


Expand Down Expand Up @@ -18676,4 +18680,4 @@ exports.version = "1.2.3";
window.ace[key] = a[key];
});
})();


0 comments on commit 91d6f28

Please sign in to comment.