slint icon indicating copy to clipboard operation
slint copied to clipboard

TextInput: Add focus-policy

Open tronical opened this issue 5 months ago • 5 comments

ChangeLog: TextInput: Added focus-policy property.

tronical avatar Aug 07 '25 07:08 tronical

Great, thank you! :tada:

ubruhin avatar Aug 07 '25 08:08 ubruhin

We decided against the FocusPolicy as the best API would make use of bit flags, which we don't have yet. In FocusScope we implemented focus-on-click and focus-on-tab-navigation and I think we should have that in TextInput, too.

tronical avatar Sep 04 '25 12:09 tronical

Bit flags would be nice indeed, but of course two bools are fine for me either :+1:

ubruhin avatar Sep 04 '25 14:09 ubruhin

Changing this back to a draft until the PR adds these properties.

tronical avatar Sep 09 '25 09:09 tronical

Meanwhile, this also relates to #81 as a long term solution.

tronical avatar Sep 09 '25 09:09 tronical