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

support conversion from NSMenuItem.keyEquivalent to Sauce.Key #32

Closed
DivineDominion opened this issue Oct 31, 2020 · 0 comments · Fixed by #35 · May be fixed by Clipy/Magnet#68
Closed

support conversion from NSMenuItem.keyEquivalent to Sauce.Key #32

DivineDominion opened this issue Oct 31, 2020 · 0 comments · Fixed by #35 · May be fixed by Clipy/Magnet#68

Comments

@DivineDominion
Copy link
Contributor

Currently, neither Key.init(rawValue:) nor Key.init(character:virtualKeyCode:) produce .return when passing in "\r". That's what you get when you bind a NSMenuItem to the return key:

image

Maybe an extension on NSMenuItem that exposes key would be useful.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant