diff options
author | MetaDucky <metaducky AT gmail DOT com> | 2013-05-27 19:33:33 +0200 |
---|---|---|
committer | Kahrl <kahrl@gmx.net> | 2013-06-01 01:59:48 +0200 |
commit | a61aa6690b5a5bf804c6de22eed95a68ba480e7d (patch) | |
tree | 0d81c091d1c288a51ae6529301daff5e664cf5a8 /src | |
parent | 7721948a2fbd101bc8530e4d3ae7c1552bdf9490 (diff) | |
download | minetest-a61aa6690b5a5bf804c6de22eed95a68ba480e7d.tar.gz minetest-a61aa6690b5a5bf804c6de22eed95a68ba480e7d.tar.bz2 minetest-a61aa6690b5a5bf804c6de22eed95a68ba480e7d.zip |
Fix editbox default text being pre-selected in some cases
Diffstat (limited to 'src')
-rw-r--r-- | src/guiCreateWorld.cpp | 3 | ||||
-rw-r--r-- | src/guiFormSpecMenu.cpp | 5 | ||||
-rw-r--r-- | src/guiTextInputMenu.cpp | 3 |
3 files changed, 10 insertions, 1 deletions
diff --git a/src/guiCreateWorld.cpp b/src/guiCreateWorld.cpp index 9fc764214..f9afe9592 100644 --- a/src/guiCreateWorld.cpp +++ b/src/guiCreateWorld.cpp @@ -135,6 +135,9 @@ void GUICreateWorld::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); } { diff --git a/src/guiFormSpecMenu.cpp b/src/guiFormSpecMenu.cpp index 6ada77698..3e0d7fd46 100644 --- a/src/guiFormSpecMenu.cpp +++ b/src/guiFormSpecMenu.cpp @@ -418,9 +418,12 @@ void GUIFormSpecMenu::regenerateGui(v2u32 screensize) e->setTextAlignment(gui::EGUIA_UPPERLEFT, gui::EGUIA_UPPERLEFT); } else { irr::SEvent evt; - evt.KeyInput.Key = KEY_END; 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); } 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(""); |