From a26a66a8c4f2121bb4693e63310ecc4c4d0c78ea Mon Sep 17 00:00:00 2001 From: Perttu Ahola Date: Wed, 25 Jul 2012 18:28:40 +0300 Subject: [PATCH] Restore focus to formspec menu when pressing a button --- src/guiFormSpecMenu.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/guiFormSpecMenu.cpp b/src/guiFormSpecMenu.cpp index 5ae336e4f..760d67f9f 100644 --- a/src/guiFormSpecMenu.cpp +++ b/src/guiFormSpecMenu.cpp @@ -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; } }