From: Perttu Ahola Date: Wed, 25 Jul 2012 15:28:40 +0000 (+0300) Subject: Restore focus to formspec menu when pressing a button X-Git-Url: http://81.2.79.47:8989/gitweb/?a=commitdiff_plain;h=a26a66a8c4f2121bb4693e63310ecc4c4d0c78ea;p=zefram%2Fminetest%2Fminetest_engine.git Restore focus to formspec menu when pressing a button --- diff --git a/src/guiFormSpecMenu.cpp b/src/guiFormSpecMenu.cpp index 5ae336e4..760d67f9 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; } }