@fileverse-dev/fortune-core 1.2.89-mobile-1 → 1.2.90

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.
@@ -423,12 +423,12 @@ export function handleGlobalKeyDown(ctx, cellInput, fxInput, e, cache, handleUnd
423
423
  isFxInput = (_b = (_a = e === null || e === void 0 ? void 0 : e.target) === null || _a === void 0 ? void 0 : _a.classList) === null || _b === void 0 ? void 0 : _b.contains("fortune-fx-input");
424
424
  ignoredKeys = new Set(isFxInput ? ["Enter", "Tab", "ArrowLeft", "ArrowRight"] : ["Enter", "Tab", "ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight"]);
425
425
  restCod = !ignoredKeys.has(kstr);
426
- if (ctx.luckysheetCellUpdate.length > 0 && restCod && (window.CompositData === "" || window.CompositData === undefined)) {
426
+ if (ctx.luckysheetCellUpdate.length > 0 && restCod) {
427
427
  return [2];
428
428
  }
429
429
  if (kstr === "Enter") {
430
430
  if (!allowEdit) return [2];
431
- if (window.CompositData === "" || window.CompositData === undefined) handleGlobalEnter(ctx, cellInput, e, canvas);
431
+ handleGlobalEnter(ctx, cellInput, e, canvas);
432
432
  } else if (kstr === "Tab") {
433
433
  if (ctx.luckysheetCellUpdate.length > 0) {
434
434
  updateCell(ctx, ctx.luckysheetCellUpdate[0], ctx.luckysheetCellUpdate[1], cellInput, undefined, canvas);
@@ -433,12 +433,12 @@ function handleGlobalKeyDown(ctx, cellInput, fxInput, e, cache, handleUndo, hand
433
433
  isFxInput = (_b = (_a = e === null || e === void 0 ? void 0 : e.target) === null || _a === void 0 ? void 0 : _a.classList) === null || _b === void 0 ? void 0 : _b.contains("fortune-fx-input");
434
434
  ignoredKeys = new Set(isFxInput ? ["Enter", "Tab", "ArrowLeft", "ArrowRight"] : ["Enter", "Tab", "ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight"]);
435
435
  restCod = !ignoredKeys.has(kstr);
436
- if (ctx.luckysheetCellUpdate.length > 0 && restCod && (window.CompositData === "" || window.CompositData === undefined)) {
436
+ if (ctx.luckysheetCellUpdate.length > 0 && restCod) {
437
437
  return [2];
438
438
  }
439
439
  if (kstr === "Enter") {
440
440
  if (!allowEdit) return [2];
441
- if (window.CompositData === "" || window.CompositData === undefined) handleGlobalEnter(ctx, cellInput, e, canvas);
441
+ handleGlobalEnter(ctx, cellInput, e, canvas);
442
442
  } else if (kstr === "Tab") {
443
443
  if (ctx.luckysheetCellUpdate.length > 0) {
444
444
  (0, _cell.updateCell)(ctx, ctx.luckysheetCellUpdate[0], ctx.luckysheetCellUpdate[1], cellInput, undefined, canvas);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fileverse-dev/fortune-core",
3
- "version": "1.2.89-mobile-1",
3
+ "version": "1.2.90",
4
4
  "main": "lib/index.js",
5
5
  "module": "es/index.js",
6
6
  "typings": "lib/index.d.ts",