Browse Source

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

tags/2021-05-28
jules 10 years ago
parent
commit
739e8ffba0
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      modules/juce_gui_basics/windows/juce_ComponentPeer.cpp

+ 2
- 2
modules/juce_gui_basics/windows/juce_ComponentPeer.cpp 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;


Loading…
Cancel
Save