is there a way to get key events when the window i...
# compose-desktop
a
is there a way to get key events when the window is focused? I am aware you can pass a
on[Preview]Key {}
on the window but that requires the contents of the window to be focused for it to work. I tried setting a
KeyEventDispatcher
but it gets called before everything else (ie gets keystrokes that should be consumed by text fields, while focused). Any way to achieve this?
My bad. it seems like passing a onKeyEvent on the window works