material-react-table-narender 2.13.15 → 2.13.17

Sign up to get free protection for your applications and to get access to all the features.
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "2.13.15",
2
+ "version": "2.13.17",
3
3
  "license": "MIT",
4
4
  "name": "material-react-table-narender",
5
5
  "description": "A fully featured Material UI V5 implementation of TanStack React Table V8, written from the ground up in TypeScript.",
@@ -88,10 +88,11 @@ export const cellKeyboardShortcuts = <TData extends MRT_RowData = MRT_RowData>({
88
88
 
89
89
  const { enableKeyboardShortcuts } = getState();
90
90
 
91
- if (event.altKey) {
91
+ if (event.altKey && event.key.toLowerCase() === 'n') {
92
92
  event.preventDefault();
93
93
  setEnableKeyboardShortcuts(!enableKeyboardShortcuts);
94
- // return;
94
+ const currentCell = event.currentTarget;
95
+ currentCell.focus();
95
96
  }
96
97
 
97
98
  // if (!table.options.enableKeyboardShortcuts) return;