Merge pull request #339 from sharelatex/ja-fix-accent-keys

Patch Ace to fix accent key problem in Chrome
This commit is contained in:
James Allen 2016-10-12 09:21:33 +01:00 committed by GitHub
commit 436d63fa12

View file

@ -2283,6 +2283,9 @@ var TextInput = function(parentNode, host) {
if (e.type == "compositionend" && c.range) {
host.selection.setRange(c.range);
}
// WORKAROUND: Accent keys and Korean keys don't work in Chrome >53.
// https://github.com/ajaxorg/ace/issues/3045
if (useragent.isChrome >= 53) onInput();
};