Commit a526d9b4 authored by bitplane's avatar bitplane

Fixed some combobox/listbox annoyances raised by greenya

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@685 dfc29bdd-3216-0410-991c-e03cc46cb475
parent fcbf4a1a
......@@ -206,7 +206,10 @@ bool CGUIComboBox::OnEvent(SEvent event)
ListBox->OnEvent(event))
return true;
else
{
openCloseMenu();
return true;
}
if (!AbsoluteClippingRect.isPointInside(p))
{
......
......@@ -239,6 +239,13 @@ bool CGUIListBox::OnEvent(SEvent event)
ScrollBar->OnEvent(event))
return true;
if (!AbsoluteRect.isPointInside(p))
{
Selecting = false;
Environment->removeFocus(this);
break;
}
Selecting = false;
Environment->removeFocus(this);
selectNew(event.MouseInput.Y);
......
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