Re: Focus behavior on cell based controls

2024-11-22 Thread Abhinay Agarwal
Hi Michael, Thank you for the explanation. I was confused to see focused still set to true on cells, which is more prominent now with the introduction of `focusWithin`. Deprecating `Note.setFocused` would need a major update across controls, whereas an update in Cell to use cell-specific focus p

Re: Focus behavior on cell based controls

2024-11-22 Thread Michael Strauß
This was an unfortunate decision. The reason for this seems to be that cell-based controls use the `focused` property in a non-standard way, to remember the focused cell even when the input focus was moved to a different control. There's no reason to do that, and can be fixed by introducing a cell-

Focus behavior on cell based controls

2024-11-22 Thread Abhinay Agarwal
Hi, Controls like ListView, TreeView, etc. always have one of the cells with focused property set to true. This causes the focusWithin property [1] (introduced in 19) on these controls to be set to true even when the actual focus is neither on them nor its children. I wonder if there is a rea