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

fix: handle function key mask since macos 12 #7740

Merged
merged 1 commit into from
Jun 21, 2021

Conversation

Cubelrti
Copy link
Contributor

This patch attempts to fix #7739

Adding extra cases which could handle function key mask since macOS 12 could use Function key as modifiers. Adding a string length guard as well to avoid further changes which may lead to crash.

Since NS*KeyMask are deprecated from 10.12, migrating to NSEventModifierFlag* as well.

@rogerwang rogerwang merged commit e0bcdf4 into nwjs:nw54 Jun 21, 2021
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.

MenuItem::CreateFromNative for macOS crashes for items that only have Function modifier
2 participants