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

Replace -1 constant in keycode with enum value #120126

Merged
merged 1 commit into from Mar 30, 2021

Conversation

mjbvz
Copy link
Contributor

@mjbvz mjbvz commented Mar 29, 2021

Tthe key code logic uses the constant -1 in a number of places. With the latest TS 4.3 nightly build, this causes a compile error since there is no overlap between -1 and the KeyCode enum

This change adds a -1 value to the KeyCode and ScanCode enums

microsoft/TypeScript#43419

Tthe key code logic uses the constant `-1` in a number of places. With the latest TS 4.3 nightly build, this causes a compile error since there is no overlap between `-1` and the `KeyCode` enum

This change adds a `-1` value to the `KeyCode` and `ScanCode` enums
@mjbvz mjbvz added this to the April 2021 milestone Mar 29, 2021
@mjbvz mjbvz requested a review from alexdima March 29, 2021 19:07
@mjbvz mjbvz self-assigned this Mar 29, 2021
@mjbvz mjbvz merged commit 7bbc15a into microsoft:main Mar 30, 2021
@mjbvz
Copy link
Contributor Author

mjbvz commented Mar 30, 2021

@alexdima I am merging this to unblock updating to TS 4.3. Please let me know if you have any concerns about this change. Feel free to rename the new enum value too

@alexdima
Copy link
Member

👍 Looks Good

@github-actions github-actions bot locked and limited conversation to collaborators May 14, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants