summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPerttu Ahola <celeron55@gmail.com>2012-07-25 18:28:40 +0300
committerPerttu Ahola <celeron55@gmail.com>2012-07-25 18:28:40 +0300
commita26a66a8c4f2121bb4693e63310ecc4c4d0c78ea (patch)
treec47181a5efcdafb0fd923a8f05dd499cbba64f3d /src
parent100345f1e4331f53b35ef26e60ba4efb1e86b7ba (diff)
downloadminetest-a26a66a8c4f2121bb4693e63310ecc4c4d0c78ea.tar.gz
minetest-a26a66a8c4f2121bb4693e63310ecc4c4d0c78ea.tar.bz2
minetest-a26a66a8c4f2121bb4693e63310ecc4c4d0c78ea.zip
Restore focus to formspec menu when pressing a button
Diffstat (limited to 'src')
-rw-r--r--src/guiFormSpecMenu.cpp2
1 files changed, 2 insertions, 0 deletions
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;
}
}