From 739e8ffba09c74523590a0969e82f9d80644482c Mon Sep 17 00:00:00 2001 From: jules Date: Mon, 27 Apr 2015 12:07:15 +0100 Subject: [PATCH] Fix to make sure IME methods are possible with text components that are directly added to the desktop. --- modules/juce_gui_basics/windows/juce_ComponentPeer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/juce_gui_basics/windows/juce_ComponentPeer.cpp b/modules/juce_gui_basics/windows/juce_ComponentPeer.cpp index a4171f16a0..c27692bb0e 100644 --- a/modules/juce_gui_basics/windows/juce_ComponentPeer.cpp +++ b/modules/juce_gui_basics/windows/juce_ComponentPeer.cpp @@ -275,8 +275,8 @@ TextInputTarget* ComponentPeer::findCurrentTextInputTarget() { Component* const c = Component::getCurrentlyFocusedComponent(); - if (component.isParentOf (c)) - if (TextInputTarget* const ti = dynamic_cast (c)) + if (c == &component || component.isParentOf (c)) + if (TextInputTarget* const ti = dynamic_cast (c)) if (ti->isTextInputActive()) return ti;