How to correctly capture Ctrl + Tab (like a browse...
# compose-desktop
j
How to correctly capture Ctrl + Tab (like a browser would do)? I've added the MenuBar shortcut, but that doesn't work. By default it just navigates through focusable objects, but I want it to do a specific action. I've now set
onKeyEvent
on my
Window
. It works, and I return
true
, but it also still does the [move to next focusable element] action. How do I disable that?
OK, talking to myself again. rubber duck Using
onPreviewKeyEvent
instead of
onKeyEvent
fixed it 🎉