Restore focus to formspec menu when pressing a button
authorPerttu Ahola <celeron55@gmail.com>
Wed, 25 Jul 2012 15:28:40 +0000 (18:28 +0300)
committerPerttu Ahola <celeron55@gmail.com>
Wed, 25 Jul 2012 15:28:40 +0000 (18:28 +0300)
src/guiFormSpecMenu.cpp

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