mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-09-09 12:25:17 -04:00
Fix tab completion in console to not cycle key focus
This commit is contained in:
parent
c203a0774a
commit
5482ad0482
@ -82,6 +82,9 @@ bool KeyboardNavigation::switchFocus(int direction, bool wrap)
|
|||||||
if (!isButtonFocus() && direction != D_Prev && direction != D_Next)
|
if (!isButtonFocus() && direction != D_Prev && direction != D_Next)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
if ((direction == D_Prev || direction == D_Next) && focus->getUserString("AcceptTab") == "true")
|
||||||
|
return false;
|
||||||
|
|
||||||
MyGUI::Widget* window = MyGUI::InputManager::getInstance().getKeyFocusWidget();
|
MyGUI::Widget* window = MyGUI::InputManager::getInstance().getKeyFocusWidget();
|
||||||
while (window->getParent())
|
while (window->getParent())
|
||||||
window = window->getParent();
|
window = window->getParent();
|
||||||
|
@ -18,6 +18,7 @@
|
|||||||
<!-- Command line -->
|
<!-- Command line -->
|
||||||
<Widget type="EditBox" skin="MW_ConsoleCommand" position="0 338 384 28" align="HStretch Bottom" name="edit_Command">
|
<Widget type="EditBox" skin="MW_ConsoleCommand" position="0 338 384 28" align="HStretch Bottom" name="edit_Command">
|
||||||
<Property key="InvertSelected" value="false"/>
|
<Property key="InvertSelected" value="false"/>
|
||||||
|
<UserString key="AcceptTab" value="true"/>
|
||||||
</Widget>
|
</Widget>
|
||||||
|
|
||||||
</Widget>
|
</Widget>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user