Skip to content
Permalink
Browse files

Fix editbox default text being pre-selected in some cases

  • Loading branch information
MetaDucky authored and kahrl committed May 31, 2013
1 parent 7721948 commit a61aa6690b5a5bf804c6de22eed95a68ba480e7d
Showing with 10 additions and 1 deletion.
  1. +3 −0 src/guiCreateWorld.cpp
  2. +4 −1 src/guiFormSpecMenu.cpp
  3. +3 −0 src/guiTextInputMenu.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);
}
{
@@ -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);
}

@@ -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("");

0 comments on commit a61aa66

Please sign in to comment.
You can’t perform that action at this time.