material-react-table-narender 2.13.11 → 2.13.12

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.11",
2
+ "version": "2.13.12",
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.",
@@ -80,6 +80,13 @@ export const cellKeyboardShortcuts = <TData extends MRT_RowData = MRT_RowData>({
80
80
  table: MRT_TableInstance<TData>;
81
81
  }) => {
82
82
  debugger;
83
+
84
+ if (event.altKey && event.key.toLowerCase() === 'n') {
85
+ event.preventDefault();
86
+ table.options.enableKeyboardShortcuts = !table.options.enableKeyboardShortcuts;
87
+ return;
88
+ }
89
+
83
90
  if (!table.options.enableKeyboardShortcuts) return;
84
91
  if (event.isPropagationStopped()) return;
85
92
  const currentCell = event.currentTarget;