I have some code where I need to handle the `onKey...
# compose-desktop
d
I have some code where I need to handle the
onKeyEvent
for a
Window
, and it's giving me a
KeyEvent
, but I'm not sure how to tell if that event represents a typeable character or not without simply creating a huge mapping of Key to chars myself.
In Swing, a
KeyEvent
comes with a useful
keyChar
property you can use. Is this just currently missing in Desktop Compose?
It seems like on the JVM I can forcefully cast the
nativeKeyEvent
to an AWT
KeyEvent
so I can do that, but I'm wondering if there's a more elegant way.