mirror of
https://github.com/vcmi/vcmi.git
synced 2025-08-13 19:54:17 +02:00
Do not allow stealing input focus from ourselves
This commit is contained in:
@@ -801,6 +801,9 @@ void CFocusable::moveFocus()
|
||||
if(i == focusables.end())
|
||||
i = focusables.begin();
|
||||
|
||||
if (*i == this)
|
||||
return;
|
||||
|
||||
if((*i)->isActive())
|
||||
{
|
||||
(*i)->giveFocus();
|
||||
|
Reference in New Issue
Block a user