We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2b29dd9 commit 3bdb38fCopy full SHA for 3bdb38f
packages/sdk/src/components/grid/hooks/useKeyboardSelection.ts
@@ -120,10 +120,14 @@ export const useKeyboardSelection = (props: ISelectionKeyboardProps) => {
120
);
121
122
useHotkeys(
123
- 'tab',
+ ['tab', 'shift+tab'],
124
() => {
125
const [columnIndex, rowIndex] = selection.ranges[0];
126
- const newColumnIndex = Math.min(columnIndex + 1, columnCount - 1);
+
127
+ let newColumnIndex = Math.min(columnIndex + 1, columnCount - 1);
128
+ if (isHotkeyPressed('shift') && isHotkeyPressed('tab'))
129
+ newColumnIndex = Math.max(columnIndex - 1, 0);
130
131
const newRange = <IRange>[newColumnIndex, rowIndex];
132
const ranges = [newRange, newRange];
133
0 commit comments