@fileverse-dev/fortune-react 1.2.55 → 1.2.58

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.
@@ -137,7 +137,7 @@ var FxEditor = function FxEditor() {
137
137
  if (key === "ArrowLeft" || key === "ArrowRight") {
138
138
  e.stopPropagation();
139
139
  }
140
- if (e.key === "Enter" && context.luckysheetCellUpdate.length > 0) {
140
+ if ((e.key === "Enter" || e.key === "Tab") && context.luckysheetCellUpdate.length > 0) {
141
141
  if (e.altKey || e.metaKey) {
142
142
  document.execCommand("insertHTML", false, "\n ");
143
143
  document.execCommand("delete", false);
@@ -146,7 +146,7 @@ var FxEditor = function FxEditor() {
146
146
  if (key === "ArrowLeft" || key === "ArrowRight") {
147
147
  e.stopPropagation();
148
148
  }
149
- if (e.key === "Enter" && context.luckysheetCellUpdate.length > 0) {
149
+ if ((e.key === "Enter" || e.key === "Tab") && context.luckysheetCellUpdate.length > 0) {
150
150
  if (e.altKey || e.metaKey) {
151
151
  document.execCommand("insertHTML", false, "\n ");
152
152
  document.execCommand("delete", false);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fileverse-dev/fortune-react",
3
- "version": "1.2.55",
3
+ "version": "1.2.58",
4
4
  "main": "lib/index.js",
5
5
  "types": "lib/index.d.ts",
6
6
  "module": "es/index.js",
@@ -16,7 +16,7 @@
16
16
  "tsc": "tsc"
17
17
  },
18
18
  "dependencies": {
19
- "@fileverse-dev/fortune-core": "1.2.55",
19
+ "@fileverse-dev/fortune-core": "1.2.58",
20
20
  "@fileverse/ui": "^4.1.7-patch-40",
21
21
  "@tippyjs/react": "^4.2.6",
22
22
  "@types/regenerator-runtime": "^0.13.6",