Skip to content

[AppKit] Fix incorrect rawValue for NSEvent.SpecialKey.deleteForward #26853

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

Merged
merged 1 commit into from
Aug 27, 2019

Conversation

rudedogg
Copy link
Contributor

Update the rawValue to match NSDeleteFunctionKey.

The NSEvent.SpecialKey.deleteForward rawValue is currently 0xF7028. This appears to be a typo, as the relevant AppKit docs say it should be 0xF728.

I noticed this when using a switch to handle NSEvent specialKey values, and testing the forward delete key. My case for .deleteForward was skipped, and the specialKey rawValue of the actual event was 0xF728.

Update the rawValue to match NSDeleteFunctionKey.
@lorentey
Copy link
Member

Nice catch!

@swift-ci test

@swift-ci

This comment has been minimized.

@lorentey
Copy link
Member

@swift-ci test macOS platform

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.

3 participants