mirror of
https://github.com/twentyhq/twenty.git
synced 2024-11-22 03:17:40 +03:00
feat: make selection work for record board
This commit is contained in:
parent
d0a0cfe6c2
commit
02923284c4
@ -7,6 +7,7 @@ import { Key } from 'ts-key-enum';
|
||||
import { RecordBoardHeader } from '@/object-record/record-board/components/RecordBoardHeader';
|
||||
import { RecordBoardStickyHeaderEffect } from '@/object-record/record-board/components/RecordBoardStickyHeaderEffect';
|
||||
import { RECORD_BOARD_CLICK_OUTSIDE_LISTENER_ID } from '@/object-record/record-board/constants/RecordBoardClickOutsideListenerId';
|
||||
import { ActionBarHotkeyScope } from '@/action-menu/types/ActionBarHotKeyScope';
|
||||
import { RecordBoardContext } from '@/object-record/record-board/contexts/RecordBoardContext';
|
||||
import { useRecordBoardStates } from '@/object-record/record-board/hooks/internal/useRecordBoardStates';
|
||||
import { useRecordBoardSelection } from '@/object-record/record-board/hooks/useRecordBoardSelection';
|
||||
@ -95,7 +96,14 @@ export const RecordBoard = () => {
|
||||
[allRecordIdsSelector, setRecordAsSelected],
|
||||
);
|
||||
|
||||
useScopedHotkeys([Key.Escape], resetRecordSelection, TableHotkeyScope.Table);
|
||||
useScopedHotkeys('ctrl+a,meta+a', selectAll, TableHotkeyScope.Table);
|
||||
|
||||
useScopedHotkeys(Key.Escape, resetRecordSelection, TableHotkeyScope.Table);
|
||||
useScopedHotkeys(
|
||||
Key.Escape,
|
||||
resetRecordSelection,
|
||||
ActionBarHotkeyScope.ActionBar,
|
||||
);
|
||||
|
||||
const handleDragEnd: OnDragEndResponder = useRecoilCallback(
|
||||
({ snapshot }) =>
|
||||
|
Loading…
Reference in New Issue
Block a user