Is there a way to know which component has focus in desktop compose? When I change the expand/collapse state of a branch of my tree, the parent component seems to lose focus if I clicked on a node in that branch, but it doesn't lose focus if cursor keyed to that node.
not kotlin but kotlin colored 1
y
Youssef Shoaib [MOD]
07/17/2024, 4:05 PM
#compose-desktop might have answers for you
BTW, I think reacting with Not-Kotlin to this doesn't make sense because Compose is purely a Kotlin technology.
👍 1
t
Trejkaz
07/22/2024, 6:06 AM
focus is something I have been fighting with as well
Trejkaz
07/22/2024, 6:08 AM
or rather getting key events at all given that apparently it demands having focus