mirror of
https://github.com/vcmi/vcmi.git
synced 2025-02-03 13:01:33 +02:00
[3167] Fix SDL_StopTextInput extra calls
This commit is contained in:
parent
11bb46780a
commit
8e57d36b8c
@ -656,19 +656,20 @@ CFocusable::~CFocusable()
|
||||
|
||||
focusables -= this;
|
||||
}
|
||||
|
||||
void CFocusable::giveFocus()
|
||||
{
|
||||
focus = true;
|
||||
focusGot();
|
||||
redraw();
|
||||
|
||||
if(inputWithFocus)
|
||||
{
|
||||
inputWithFocus->focus = false;
|
||||
inputWithFocus->focusLost();
|
||||
inputWithFocus->redraw();
|
||||
}
|
||||
|
||||
focus = true;
|
||||
inputWithFocus = this;
|
||||
focusGot();
|
||||
redraw();
|
||||
}
|
||||
|
||||
void CFocusable::moveFocus()
|
||||
|
Loading…
x
Reference in New Issue
Block a user