Alternatively, what's a good way to intercept Ctrl+Z app-wide? If we have to work with the
KeyEvent
API (
Modifier.onKeyEvent
/
onPreviewKeyEvent
), is there a nice high level way to detect an "Undo" as opposed to Ctrl+Z / Meta+Z?
And finally, what's a good cross-platform way of detecting Ctrl/Cmd+Key? I'm currently checking OS via
System.getProperty
and looking for a matching modifier key.
k
Kirill Grouchnikov
10/27/2023, 7:19 PM
It’s not just the modifier key. Different platforms do have different key combinations for the “same” action.