@contentful/field-editor-rich-text 3.3.1 → 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.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,12 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [3.3.2](https://github.com/contentful/field-editors/compare/@contentful/field-editor-rich-text@3.3.1...@contentful/field-editor-rich-text@3.3.2) (2023-01-02)
7
+
8
+ ### Bug Fixes
9
+
10
+ - a11y issues focus rich text ([#1315](https://github.com/contentful/field-editors/issues/1315)) ([a2064a7](https://github.com/contentful/field-editors/commit/a2064a76942a63fcce4e4ad39cf6e36bfe1f5159))
11
+
6
12
  ## [3.3.1](https://github.com/contentful/field-editors/compare/@contentful/field-editor-rich-text@3.3.0...@contentful/field-editor-rich-text@3.3.1) (2022-12-23)
7
13
 
8
14
  **Note:** Version bump only for package @contentful/field-editor-rich-text
@@ -6511,10 +6511,10 @@ var onKeyDownTable = function onKeyDownTable(editor, plugin) {
6511
6511
 
6512
6512
 
6513
6513
  if (event.key === 'Tab' && !event.shiftKey) {
6514
- event.preventDefault();
6515
6514
  var res = plateTable.getTableCellEntry(editor, {});
6516
6515
 
6517
6516
  if (res) {
6517
+ event.preventDefault();
6518
6518
  var tableElement = res.tableElement,
6519
6519
  tableRow = res.tableRow,
6520
6520
  tableCell = res.tableCell;
@@ -6525,11 +6525,15 @@ var onKeyDownTable = function onKeyDownTable(editor, plugin) {
6525
6525
  addRowBelow(editor); // skip default handler
6526
6526
 
6527
6527
  return;
6528
+ } else {
6529
+ defaultHandler(event);
6528
6530
  }
6529
6531
  }
6530
6532
  }
6531
6533
 
6532
- defaultHandler(event);
6534
+ if (event.key === 'Escape') {
6535
+ Slate.ReactEditor.blur(editor);
6536
+ }
6533
6537
  };
6534
6538
  };
6535
6539