From a61aa6690b5a5bf804c6de22eed95a68ba480e7d Mon Sep 17 00:00:00 2001 From: MetaDucky Date: Mon, 27 May 2013 19:33:33 +0200 Subject: Fix editbox default text being pre-selected in some cases --- src/guiTextInputMenu.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/guiTextInputMenu.cpp') diff --git a/src/guiTextInputMenu.cpp b/src/guiTextInputMenu.cpp index c15eeedc5..d5229f415 100644 --- a/src/guiTextInputMenu.cpp +++ b/src/guiTextInputMenu.cpp @@ -121,6 +121,9 @@ void GUITextInputMenu::regenerateGui(v2u32 screensize) evt.EventType = EET_KEY_INPUT_EVENT; evt.KeyInput.Key = KEY_END; evt.KeyInput.PressedDown = true; + evt.KeyInput.Char = 0; + evt.KeyInput.Control = 0; + evt.KeyInput.Shift = 0; e->OnEvent(evt); } changeCtype(""); -- cgit v1.2.3