Skip to content

Changed the behaviour of TableViewTextInput to loose focus on enter/return#35

Open
seventil wants to merge 2 commits intodevelopfrom
change_textinput_on_enter_focus
Open

Changed the behaviour of TableViewTextInput to loose focus on enter/return#35
seventil wants to merge 2 commits intodevelopfrom
change_textinput_on_enter_focus

Conversation

@seventil
Copy link

@seventil seventil commented Mar 16, 2026

Right now any TableViewTextInput (and TextInput/TextField in general) based elements rely on Accepted and EditingFinished signals to tie in backend logic. The issue with such an approach is that pressing enter fires both signals, while the focus remains in the element providing no visual feedback to the user that the input was accepted. Moreover, adding 'focus = true' in code might accidentally fire secondary EditingFinished signal.

This PR introduces a way to provide visual feedback to the user on enter/return pressed.
Behaviour of Accepted/EditingFinished is not changed: Accepted is fired on enter/return, EditingFinished is fired on enter/return or focus loss.

@seventil seventil requested a review from AndrewSazonov March 16, 2026 16:01
@seventil seventil self-assigned this Mar 16, 2026
@seventil seventil added [scope] enhancement Adds/improves features (major.MINOR.patch) [priority] low Low importance labels Mar 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

[priority] low Low importance [scope] enhancement Adds/improves features (major.MINOR.patch)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant