From 9f6460ddae08f4f56c0f5512aae663980da81227 Mon Sep 17 00:00:00 2001 From: daboe01 Date: Thu, 30 Jun 2016 19:45:09 +0200 Subject: [PATCH] prevent certain race conditions in deadkey handling in FF and safari --- AppKit/CPTextView/CPTextView.j | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AppKit/CPTextView/CPTextView.j b/AppKit/CPTextView/CPTextView.j index f025be0e0..055852013 100644 --- a/AppKit/CPTextView/CPTextView.j +++ b/AppKit/CPTextView/CPTextView.j @@ -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];