diff options
author | Perttu Ahola <celeron55@gmail.com> | 2011-08-22 14:46:54 +0300 |
---|---|---|
committer | Perttu Ahola <celeron55@gmail.com> | 2011-08-22 14:46:54 +0300 |
commit | 5415256a529eca1317b835ceea54a6ee6633cb97 (patch) | |
tree | 85e53482194f189437bc848cbb225a235ac7fcac /src/guiTextInputMenu.cpp | |
parent | 836e43db60ff1f3c9d160d0d58ba5a631c4293fc (diff) | |
parent | 9c94538fb7a7d7712d8da21d16790359a853f575 (diff) | |
download | minetest-5415256a529eca1317b835ceea54a6ee6633cb97.tar.gz minetest-5415256a529eca1317b835ceea54a6ee6633cb97.tar.bz2 minetest-5415256a529eca1317b835ceea54a6ee6633cb97.zip |
Merge remote-tracking branch 'oblomov/me_cmd'
Diffstat (limited to 'src/guiTextInputMenu.cpp')
-rw-r--r-- | src/guiTextInputMenu.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/guiTextInputMenu.cpp b/src/guiTextInputMenu.cpp index bfe0ea5de..208ced803 100644 --- a/src/guiTextInputMenu.cpp +++ b/src/guiTextInputMenu.cpp @@ -103,6 +103,12 @@ void GUITextInputMenu::regenerateGui(v2u32 screensize) gui::IGUIElement *e = Environment->addEditBox(text.c_str(), rect, true, this, 256); Environment->setFocus(e); + + irr::SEvent evt; + evt.EventType = EET_KEY_INPUT_EVENT; + evt.KeyInput.Key = KEY_END; + evt.KeyInput.PressedDown = true; + e->OnEvent(evt); } changeCtype(""); { |