You have LocalWindowInfo.current.keyboardModifiers...
# compose-desktop
a
You have LocalWindowInfo.current.keyboardModifiers always available
h
Unfortunately I can't use it in an event because of this error. "@Composable invocations can only happen from the context of a @Composable function"
a
You grab LocalWindowInfo.current into a variable in the composition, and then call keyboardModifiers on it in the event handler.
1
h
It worked very well, thank you very much
👍 1