-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
[DataGrid] Fix shift+space keyboard regression to select row #897
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's a regression and not obvious to spot, I think that it should have a test case (it's because it didn't have one that we broke it)
@@ -1,10 +1,10 @@ | |||
export const MULTIPLE_SELECTION_KEYS = ['Meta', 'Control']; | |||
export const isMultipleKey = (code: string): boolean => MULTIPLE_SELECTION_KEYS.indexOf(code) > -1; | |||
export const isTabKey = (code: string): boolean => code === 'Tab'; | |||
export const isSpaceKey = (code: string): boolean => code === 'Space'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It took me some time to find where was the fix in the diff, spotted. Space
=> ' '
:)
Fix #889