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:
parent
5cd4bf5905
commit
739e8ffba0
1 changed files with 2 additions and 2 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue