Restore focus to formspec menu when pressing a button

stable-0.4
Perttu Ahola 2012-07-25 18:28:40 +03:00
parent 100345f1e4
commit a26a66a8c4
1 changed files with 2 additions and 0 deletions

View File

@ -1166,6 +1166,8 @@ bool GUIFormSpecMenu::OnEvent(const SEvent& event)
return true; return true;
}else{ }else{
s.send = false; s.send = false;
// Restore focus to the full form
Environment->setFocus(this);
return true; return true;
} }
} }