material-react-table-narender 2.13.11 → 2.13.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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/dist/index.js
CHANGED
@@ -528,6 +528,11 @@ const openEditingCell = ({ cell, table, }) => {
|
|
528
528
|
const cellKeyboardShortcuts = ({ cell, cellElements, cellValue, containerElement, event, header, parentElement, table, }) => {
|
529
529
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
530
530
|
debugger;
|
531
|
+
if (event.altKey && event.key.toLowerCase() === 'n') {
|
532
|
+
event.preventDefault();
|
533
|
+
table.options.enableKeyboardShortcuts = !table.options.enableKeyboardShortcuts;
|
534
|
+
return;
|
535
|
+
}
|
531
536
|
if (!table.options.enableKeyboardShortcuts)
|
532
537
|
return;
|
533
538
|
if (event.isPropagationStopped())
|