You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Using :setEnterFunc() causes the game to freeze #10
If I assign an enter function to an entry field and then press "Enter", the game no longer responds to any key press. The only way to make it work again is to press any UI element with a mouse cursor.
Using the same function binded to "Enter", but some other way (i.e. via custom hotkey or a button) doesn't cause this problem.
To others concerned: it happens because Enter, unlike UIToggle(), doesn't remove focus from an entry field. To work around that, simply remove the focus yourself:
Activity
toomanynights commentedon Mar 2, 2024
To others concerned: it happens because Enter, unlike UIToggle(), doesn't remove focus from an entry field. To work around that, simply remove the focus yourself:
UI["newItemText"].javaObject:unfocus()