mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-06 09:09:40 +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