diff options
author | Perttu Ahola <celeron55@gmail.com> | 2012-07-25 18:28:40 +0300 |
---|---|---|
committer | Perttu Ahola <celeron55@gmail.com> | 2012-07-25 18:28:40 +0300 |
commit | a26a66a8c4f2121bb4693e63310ecc4c4d0c78ea (patch) | |
tree | c47181a5efcdafb0fd923a8f05dd499cbba64f3d /src | |
parent | 100345f1e4331f53b35ef26e60ba4efb1e86b7ba (diff) | |
download | minetest-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.cpp | 2 |
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; } } |