projects
/
zefram
/
minetest
/
minetest_engine.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
100345f
)
Restore focus to formspec menu when pressing a button
author
Perttu Ahola
<celeron55@gmail.com>
Wed, 25 Jul 2012 15:28:40 +0000
(18:28 +0300)
committer
Perttu Ahola
<celeron55@gmail.com>
Wed, 25 Jul 2012 15:28:40 +0000
(18:28 +0300)
src/guiFormSpecMenu.cpp
patch
|
blob
|
history
diff --git
a/src/guiFormSpecMenu.cpp
b/src/guiFormSpecMenu.cpp
index 5ae336e4fe1949aab3fc0a813e74bdba46b4cb67..760d67f9f8d9f9246d5506b23fc7438833b31998 100644
(file)
--- 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;
}
}