mirror of
https://github.com/vcmi/vcmi.git
synced 2024-11-28 08:48:48 +02:00
Force-show on-screen keyboard if player closed it before
This commit is contained in:
parent
7790b8969d
commit
d374cec6fb
@ -124,8 +124,9 @@ std::string CTextInput::getVisibleText()
|
||||
|
||||
void CTextInput::clickPressed(const Point & cursorPosition)
|
||||
{
|
||||
if(!hasFocus())
|
||||
giveFocus();
|
||||
// attempt to give focus unconditionally, even if we already have it
|
||||
// this forces on-screen keyboard to show up again, even if player have closed it before
|
||||
giveFocus();
|
||||
}
|
||||
|
||||
void CTextInput::keyPressed(EShortcut key)
|
||||
|
Loading…
Reference in New Issue
Block a user