Open Enyium opened 3 months ago
Thanks for filing an issue.
I agree that accepted
is badly named.
We can't change accepted
, that would be a breaking change.
What we can do is deprecate it and rename it to return-pressed
. (We have infrastructure to do that in TextInput because it's builtin, but we don't have infrastructure to do that yet for component declared in the Slint language.)
Regardless, it does make sense to add a editing-finished
callback to TextInput/LineEdit/TextEdit.
As it stands - the
accepted
callback of a number of elements and widgets exclusively being triggered by pressing Enter - I find the callback quite useless. In my view, it should be a less often triggered alternative toedited
, but one that will eventually always be triggered, likereleased
onSlider
(edited
is parallel toSlider
'schanged
).