prevent certain race conditions in deadkey handling in FF and safari

This commit is contained in:
daboe01 committed 2016-06-30 19:45:09 +02:00
1 parent f1dcf85d7b
commit 9f6460ddae
1 file changed
+1 -1
+1 -1
View File
@@ -881,7 +881,7 @@ var kDelegateRespondsTo_textShouldBeginEditing
[[_window platformWindow] _propagateCurrentDOMEvent:YES]; // for the _CPNativeInputManager (necessary at least on FF and chrome)
if ([event charactersIgnoringModifiers].charCodeAt(0) != 229) // filter out 229 because this would be inserted in chrome on each deadkey
if (![_CPNativeInputManager isNativeInputFieldActive] && [event charactersIgnoringModifiers].charCodeAt(0) != 229) // filter out 229 because this would be inserted in chrome on each deadkey
[self interpretKeyEvents:[event]];
[_caret setPermanentlyVisible:YES];