Przeglądaj źródła

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

Patch Ace to fix accent key problem in Chrome
James Allen 10 lat temu
rodzic
commit
436d63fa12
1 zmienionych plików z 3 dodań i 0 usunięć
  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();
     };