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/dist/index.esm.js +5 -0
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +5 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/utils/cell.utils.ts +7 -0
package/package.json
CHANGED
package/src/utils/cell.utils.ts
CHANGED
@@ -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;
|