mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-30 03:32:36 +00:00
Don't override post-processing HUD search field focus
This commit is contained in:
parent
3b8001d55d
commit
1df5fd341b
@ -445,6 +445,9 @@ namespace MWGui
|
|||||||
}
|
}
|
||||||
|
|
||||||
auto tryFocus = [this](ListWrapper* widget, const std::string& hint) {
|
auto tryFocus = [this](ListWrapper* widget, const std::string& hint) {
|
||||||
|
MyGUI::Widget* oldFocus = MyGUI::InputManager::getInstance().getKeyFocusWidget();
|
||||||
|
if (oldFocus == mFilter)
|
||||||
|
return;
|
||||||
size_t index = widget->findItemIndexWith(hint);
|
size_t index = widget->findItemIndexWith(hint);
|
||||||
|
|
||||||
if (index != MyGUI::ITEM_NONE)
|
if (index != MyGUI::ITEM_NONE)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user