Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle the shortcut key like the meta key #25

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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