Skip to content

Conversation

@jkaving
Copy link

@jkaving jkaving commented Nov 18, 2022

KeyCombination.shortcut is a way to add platform-independent keyboard shortcuts that will e.g. use "Ctrl" on Windows and "Cmd" on macOS (see the Javadoc in javafx.scene.input.KeyCombination).

This commit just adds a check for getShortcut() and sets the NSEventModifierFlagCommand just like is already done for getMeta().

Fixes #24

KeyCombination.shortcut is a way to add platform-independent keyboard
shortcuts that will e.g. use "Ctrl" on Windows and "Cmd" on macOS
(see the Javadoc in javafx.scene.input.KeyCombination).

This commit just adds a check for getShortcut() and sets the
NSEventModifierFlagCommand just like is already done for getMeta().

Fixes 0x4a616e#24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

KeyCode.SHORTCUT not working when adding keyboard accelerators

1 participant