fix: Added keyboard functionality for esc and Ctrl + a (#8282)

## Description

- This PR fixes 
#8247 
#8206 
- Adds keyboard functionality for esc (deselect all records) and Ctrl +
a (select records)

## Changes

https://github.com/user-attachments/assets/7b2718d6-dbe5-4cd8-8ead-b6baed1fc357

Merged during stream 🎉 

---------

Co-authored-by: Devessier <baptiste@devessier.fr>
This commit is contained in:
Harshit Singh
2024-11-15 21:45:39 +05:30
committed by GitHub
parent 77165a280e
commit 9e7b90a551
5 changed files with 80 additions and 1 deletions

View File

@ -22,7 +22,9 @@ export const DragSelect = ({
onDragSelectionEnd,
}: DragSelectProps) => {
const theme = useTheme();
const { isDragSelectionStartEnabled } = useDragSelect();
const { DragSelection } = useSelectionContainer({
shouldStartSelecting: (target) => {
if (!isDragSelectionStartEnabled()) {