mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Merge pull request #478 from sharelatex/pr-fix-safari-accent-handling
Fix safari accent handling
This commit is contained in:
commit
6e7b2aaacb
1 changed files with 7 additions and 3 deletions
|
@ -2283,9 +2283,13 @@ 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();
|
||||
var needsOnInput =
|
||||
(!!useragent.isChrome && useragent.isChrome >= 53) ||
|
||||
(!!useragent.isWebKit && useragent.isWebKit >= 603);
|
||||
|
||||
if (needsOnInput) {
|
||||
onInput();
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue