mirror of
https://github.com/OpenMW/openmw.git
synced 2025-03-03 13:09:40 +00:00
Allow MWList items to retain key focus
This commit is contained in:
parent
22929e53fa
commit
44720bf41a
1 changed files with 1 additions and 0 deletions
|
@ -72,6 +72,7 @@ namespace Gui
|
||||||
button->getSubWidgetText()->setTextAlign(MyGUI::Align::Left);
|
button->getSubWidgetText()->setTextAlign(MyGUI::Align::Left);
|
||||||
button->eventMouseWheel += MyGUI::newDelegate(this, &MWList::onMouseWheelMoved);
|
button->eventMouseWheel += MyGUI::newDelegate(this, &MWList::onMouseWheelMoved);
|
||||||
button->eventMouseButtonClick += MyGUI::newDelegate(this, &MWList::onItemSelected);
|
button->eventMouseButtonClick += MyGUI::newDelegate(this, &MWList::onItemSelected);
|
||||||
|
button->setNeedKeyFocus(true);
|
||||||
|
|
||||||
int height = button->getTextSize().height;
|
int height = button->getTextSize().height;
|
||||||
button->setSize(MyGUI::IntSize(button->getSize().width, height));
|
button->setSize(MyGUI::IntSize(button->getSize().width, height));
|
||||||
|
|
Loading…
Reference in a new issue