JanKoehnlein / FXDiagram

JavaFX diagram
Apache License 2.0
74 stars 21 forks source link

[eclipse] Make sure keybindings work #25

Closed JanKoehnlein closed 9 years ago

JanKoehnlein commented 9 years ago

Some keybindings work OOTB, others are shadowed by Eclipse actions (CMD-SHIFT-L), others don't have an effect at all (CMD-Z). Akira-san also reported CMD-P not working on Japanese keyboards.

JanKoehnlein commented 9 years ago

Fixed major part by disabling Eclipse's key bindings entirely when the diagram has focus. The remaining part is trickier: When passed through SWT, JavaFX produces different keyevents for the same keystroke, e.g. keyCode='Y' text='' when the Z-key is pressed on a German keyboard. Nothing I can do for this here, as I cannot handle all available keyboard layouts in FXDiagram. Raised a bug on JavaFX: https://javafx-jira.kenai.com/browse/RT-40549