1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-02-03 03:30:06 +00:00

Android: Fix dismissing screen keyboard when interacting with TextEditor

This commit is contained in:
attila 2022-04-27 15:44:45 +02:00
parent 669782cdf4
commit 627afffeb4
6 changed files with 26 additions and 7 deletions

View file

@ -1831,7 +1831,7 @@ void TextEditor::mouseDown (const MouseEvent& e)
e.mods.isShiftDown());
if (auto* peer = getPeer())
peer->dismissPendingTextInput();
peer->closeInputMethodContext();
}
else
{
@ -1954,7 +1954,7 @@ bool TextEditor::moveCaretWithTransaction (const int newPos, const bool selectin
moveCaretTo (newPos, selecting);
if (auto* peer = getPeer())
peer->dismissPendingTextInput();
peer->closeInputMethodContext();
return true;
}