cljfx

Jonathan Bennett 2024-07-13T02:05:20.692409Z

What was the answer for key chords again? I've looked through the examples, but I couldn't find it. Which example should I be looking at?

vlaaad 2024-07-13T18:10:42.898999Z

If you are looking for global, scene-level shortcuts, these are called accelerators, here is an example: https://github.com/cljfx/cljfx/blob/master/examples/e23_accelerators.clj

vlaaad 2024-07-13T18:11:27.509869Z

for shortcuts in a context of a focused node, I usually do :on-key-pressed

vlaaad 2024-07-13T18:12:37.323489Z

regarding specifically detecting +, I think maybe [:plus] will work

vlaaad 2024-07-13T18:13:54.172829Z

I know javafx has some issues with defining handlers for some shortcuts when it comes to different keyboard layouts (not every keyboard layout does shift = as +), so you might want to try different options...

vlaaad 2024-07-13T18:14:07.739469Z

others would be ["+"]

vlaaad 2024-07-13T18:14:30.590689Z

or [:shift :equals]

Jonathan Bennett 2024-07-18T10:35:57.304679Z

Accelerators was exactly what I needed, thank you!