Commit 6025e902 authored by cutealien's avatar cutealien

Fix bug that ListBox would not allow to 'tab' to the next element (thx @ FlavourBoat for reporting)


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4741 dfc29bdd-3216-0410-991c-e03cc46cb475
parent f16bd3c7
-------------------------- --------------------------
Changes in 1.9 (not yet released) Changes in 1.9 (not yet released)
- Fix bug that ListBox would not allow to 'tab' to the next element (thx @ FlavourBoat for reporting)
- IGUIEnvironment::getNextElement now public (was only in CGUIEnvironment before). - IGUIEnvironment::getNextElement now public (was only in CGUIEnvironment before).
- Add an overwrite mode to editbox. Patch provided by Adam(aka kingadami). - Add an overwrite mode to editbox. Patch provided by Adam(aka kingadami).
- Add IGUIImages::setDrawBounds/getDrawBounds to allow coding stuff like progress bars. - Add IGUIImages::setDrawBounds/getDrawBounds to allow coding stuff like progress bars.
......
...@@ -303,6 +303,10 @@ bool CGUIListBox::OnEvent(const SEvent& event) ...@@ -303,6 +303,10 @@ bool CGUIListBox::OnEvent(const SEvent& event)
} }
return true; return true;
} }
else if (event.KeyInput.Key == KEY_TAB )
{
return false;
}
else if (event.KeyInput.PressedDown && event.KeyInput.Char) else if (event.KeyInput.PressedDown && event.KeyInput.Char)
{ {
// change selection based on text as it is typed. // change selection based on text as it is typed.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment