-
Notifications
You must be signed in to change notification settings - Fork 380
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
feat(react-grid): cancel sorting by using the Ctrl key #96
feat(react-grid): cancel sorting by using the Ctrl key #96
Conversation
@@ -18,7 +18,7 @@ export const GroupPanelCell = ({ | |||
<span | |||
onClick={(e) => { | |||
if (!allowSorting) return; | |||
changeSortingDirection({ keepOther: e.shiftKey }); | |||
changeSortingDirection({ keepOther: e.shiftKey || e.ctrlKey, remove: e.ctrlKey }); |
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.
Ctrl + Click
is used in Windows and Linux. On macOS, the following keyboard shortcut is used: CMD + Click
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 better to rename the parameter that cancels sorting by a column from "remove" to "cancel" or "clear".
@SergeyAlexeev can you give some example with cancel sorting on some column? |
@SergeyAlexeev sorry my fail, bad described. I mean to disable sort on column(user cann`t click on this column header). For example i have 'ID','Name'... i want to have possibility sort by 'Name', but disabled sort by 'ID' |
No description provided.