1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

Fix to make sure IME methods are possible with text components that are directly added to the desktop.

This commit is contained in:
jules 2015-04-27 12:07:15 +01:00
parent 5cd4bf5905
commit 739e8ffba0

View file

@ -275,8 +275,8 @@ TextInputTarget* ComponentPeer::findCurrentTextInputTarget()
{
Component* const c = Component::getCurrentlyFocusedComponent();
if (component.isParentOf (c))
if (TextInputTarget* const ti = dynamic_cast<TextInputTarget*> (c))
if (c == &component || component.isParentOf (c))
if (TextInputTarget* const ti = dynamic_cast <TextInputTarget*> (c))
if (ti->isTextInputActive())
return ti;