aboutsummaryrefslogtreecommitdiff
path: root/src/guiTextInputMenu.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/guiTextInputMenu.cpp')
-rw-r--r--src/guiTextInputMenu.cpp6
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("");
{