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/dist/index.js CHANGED
@@ -530,10 +530,11 @@ const cellKeyboardShortcuts = ({ cell, cellElements, cellValue, containerElement
530
530
  debugger;
531
531
  const { getState, setEnableKeyboardShortcuts, } = table;
532
532
  const { enableKeyboardShortcuts } = getState();
533
- if (event.altKey) {
533
+ if (event.altKey && event.key.toLowerCase() === 'n') {
534
534
  event.preventDefault();
535
535
  setEnableKeyboardShortcuts(!enableKeyboardShortcuts);
536
- // return;
536
+ const currentCell = event.currentTarget;
537
+ currentCell.focus();
537
538
  }
538
539
  // if (!table.options.enableKeyboardShortcuts) return;
539
540
  if (!enableKeyboardShortcuts)