Parcourir la source

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

Patch Ace to fix accent key problem in Chrome
James Allen il y a 10 ans
Parent
commit
436d63fa12
1 fichiers modifiés avec 3 ajouts et 0 suppressions
  1. 3 0
      services/web/public/js/ace-1.2.5/ace.js

+ 3 - 0
services/web/public/js/ace-1.2.5/ace.js

@@ -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();
     };