Skip to content

Commit 7b8b3ff

Browse files
authored
fix: update keyboard shortcut from 'del' to 'delete' key (#1446)
1 parent 3316bfa commit 7b8b3ff

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/sdk/src/components/grid/hooks/useKeyboardSelection.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,12 +171,12 @@ export const useKeyboardSelection = (props: ISelectionKeyboardProps) => {
171171
);
172172

173173
useHotkeys(
174-
['del', 'backspace', 'f2'],
174+
['delete', 'backspace', 'f2'],
175175
() => {
176176
if (isHotkeyPressed('f2')) {
177177
return setEditing(true);
178178
}
179-
if (isHotkeyPressed('backspace') || isHotkeyPressed('del')) {
179+
if (isHotkeyPressed('backspace') || isHotkeyPressed('delete')) {
180180
return onDelete?.(selection);
181181
}
182182
},

0 commit comments

Comments
 (0)