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

Add support for macOS modifier keys #45

Merged
merged 3 commits into from
Feb 6, 2023
Merged

Conversation

sjavora
Copy link
Contributor

@sjavora sjavora commented Feb 5, 2023

  • shift
  • control
  • option (alt)
  • command

Don't know if it's ok to pass 0 when creating KeyEvent, but it worked when I tested it.

Screenshot 2023-02-05 at 22 58 50

☝️ Command specifically will need to be added to keycodec.cpp, but this needs to be merged first.

@Try
Copy link
Owner

Try commented Feb 6, 2023

Hi, @sjavora !

Don't know if it's ok to pass 0 when creating KeyEvent, but it worked when I tested it.

Fine, in general, but there is a specialized constructor, that takes no key-code.

@Try Try merged commit 91145fc into Try:master Feb 6, 2023
@Try
Copy link
Owner

Try commented Feb 6, 2023

LGTM, I've made a few changes on code-style - merged!

@sjavora sjavora deleted the macos-modifier-keys branch February 6, 2023 19:44
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.

2 participants