@contentful/field-editor-rich-text 3.3.0 → 3.3.2

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.
@@ -6504,10 +6504,10 @@ var onKeyDownTable = function onKeyDownTable(editor, plugin) {
6504
6504
 
6505
6505
 
6506
6506
  if (event.key === 'Tab' && !event.shiftKey) {
6507
- event.preventDefault();
6508
6507
  var res = getTableCellEntry(editor, {});
6509
6508
 
6510
6509
  if (res) {
6510
+ event.preventDefault();
6511
6511
  var tableElement = res.tableElement,
6512
6512
  tableRow = res.tableRow,
6513
6513
  tableCell = res.tableCell;
@@ -6518,11 +6518,15 @@ var onKeyDownTable = function onKeyDownTable(editor, plugin) {
6518
6518
  addRowBelow(editor); // skip default handler
6519
6519
 
6520
6520
  return;
6521
+ } else {
6522
+ defaultHandler(event);
6521
6523
  }
6522
6524
  }
6523
6525
  }
6524
6526
 
6525
- defaultHandler(event);
6527
+ if (event.key === 'Escape') {
6528
+ ReactEditor.blur(editor);
6529
+ }
6526
6530
  };
6527
6531
  };
6528
6532