diff --git a/modules/juce_gui_basics/native/juce_Windowing_windows.cpp b/modules/juce_gui_basics/native/juce_Windowing_windows.cpp index 6444b71c4d..52b65d4174 100644 --- a/modules/juce_gui_basics/native/juce_Windowing_windows.cpp +++ b/modules/juce_gui_basics/native/juce_Windowing_windows.cpp @@ -2358,7 +2358,7 @@ public: // The event was a keypress, rather than a text character - if (auto* target = peer->findCurrentTextInputTarget()) + if (peer->findCurrentTextInputTarget() != nullptr) { // If there's a focused text input target, we want to attempt "real" text input with an // IME, and we want to prevent the host from eating keystrokes (spaces etc.).