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.esm.js CHANGED
@@ -439,10 +439,11 @@ const cellKeyboardShortcuts = ({ cell, cellElements, cellValue, containerElement
439
439
  debugger;
440
440
  const { getState, setEnableKeyboardShortcuts, } = table;
441
441
  const { enableKeyboardShortcuts } = getState();
442
- if (event.altKey) {
442
+ if (event.altKey && event.key.toLowerCase() === 'n') {
443
443
  event.preventDefault();
444
444
  setEnableKeyboardShortcuts(!enableKeyboardShortcuts);
445
- // return;
445
+ const currentCell = event.currentTarget;
446
+ currentCell.focus();
446
447
  }
447
448
  // if (!table.options.enableKeyboardShortcuts) return;
448
449
  if (!enableKeyboardShortcuts)