mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-10-24 14:58:43 -04:00
UI: Fix source name edit textbox not accepting input on enter
The Enter key is connected to the `Edit` function and is handled by Qt with the highest priority in its key event handler. Alas the boolean return value is not propagated to the shortcut handling system, so the key event will always be consumed and as such the user will be stuck in editing state. To fix this, `Edit` needs to behave like a toggle, saving the current state of the input at a repeat press of Enter while in editing state.
This commit is contained in:
500 Internal Server Error
Gitea Version: 1.28.0+dev-477-g8b6ad49a5f