@fileverse-dev/fortune-core 1.2.90-bold-2 → 1.2.90-bold-3

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.
@@ -234,7 +234,6 @@ function handleControlPlusArrowKey(ctx, e, shiftPressed) {
234
234
  }
235
235
  export function handleWithCtrlOrMetaKey(ctx, cache, e, cellInput, fxInput, handleUndo, handleRedo) {
236
236
  var _a, _b, _c, _d;
237
- console.log(e.code, "handleWithCtrlOrMetaKey");
238
237
  var flowdata = getFlowdata(ctx);
239
238
  if (!flowdata) return;
240
239
  if (e.shiftKey) {
@@ -261,13 +260,10 @@ export function handleWithCtrlOrMetaKey(ctx, cache, e, cellInput, fxInput, handl
261
260
  } else if (["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight"].includes(e.key)) {
262
261
  handleControlPlusArrowKey(ctx, e, false);
263
262
  } else if (e.code === "KeyB") {
264
- console.log(e.code, "handleBold");
265
263
  handleBold(ctx, cellInput);
266
264
  } else if (e.code === "KeyI") {
267
- console.log(e.code, "handleItalic");
268
265
  handleItalic(ctx, cellInput);
269
266
  } else if (e.code === "KeyU") {
270
- console.log(e.code, "handleUnderline");
271
267
  handleUnderline(ctx, cellInput);
272
268
  } else if (e.code === "Backslash") {
273
269
  deleteSelectedCellFormat(ctx);
@@ -386,7 +382,6 @@ export function handleGlobalKeyDown(ctx, cellInput, fxInput, e, cache, handleUnd
386
382
  return __awaiter(this, void 0, void 0, function () {
387
383
  var kcode, kstr, allowEdit, isFxInput, ignoredKeys, restCod, last, row_index, col_index, last, row_index, col_index;
388
384
  return __generator(this, function (_d) {
389
- console.log(e.code, "handleGlobalKeyDown");
390
385
  if (e.shiftKey && e.code === "Space") {
391
386
  e.stopImmediatePropagation();
392
387
  e.stopPropagation();
@@ -463,17 +458,14 @@ export function handleGlobalKeyDown(ctx, cellInput, fxInput, e, cache, handleUnd
463
458
  e.preventDefault();
464
459
  } else {
465
460
  if (e.ctrlKey || e.metaKey) {
466
- console.log(e.code, "handleWithCtrlOrMetaKey in handleGlobalKeyDown");
467
461
  handleWithCtrlOrMetaKey(ctx, cache, e, cellInput, fxInput, handleUndo, handleRedo);
468
462
  return [2];
469
463
  }
470
464
  if (e.shiftKey && (kstr === "ArrowUp" || kstr === "ArrowDown" || kstr === "ArrowLeft" || kstr === "ArrowRight")) {
471
- console.log(e.code, "handleShiftWithArrowKey in handleGlobalKeyDown");
472
465
  handleShiftWithArrowKey(ctx, e);
473
466
  } else if (kstr === "Escape") {
474
467
  ctx.contextMenu = {};
475
468
  } else if (kstr === "Delete" || kstr === "Backspace") {
476
- console.log("Delete");
477
469
  if (!allowEdit) return [2];
478
470
  if (ctx.activeImg != null) {
479
471
  removeActiveImage(ctx);
@@ -244,7 +244,6 @@ function handleControlPlusArrowKey(ctx, e, shiftPressed) {
244
244
  }
245
245
  function handleWithCtrlOrMetaKey(ctx, cache, e, cellInput, fxInput, handleUndo, handleRedo) {
246
246
  var _a, _b, _c, _d;
247
- console.log(e.code, "handleWithCtrlOrMetaKey");
248
247
  var flowdata = (0, _context.getFlowdata)(ctx);
249
248
  if (!flowdata) return;
250
249
  if (e.shiftKey) {
@@ -271,13 +270,10 @@ function handleWithCtrlOrMetaKey(ctx, cache, e, cellInput, fxInput, handleUndo,
271
270
  } else if (["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight"].includes(e.key)) {
272
271
  handleControlPlusArrowKey(ctx, e, false);
273
272
  } else if (e.code === "KeyB") {
274
- console.log(e.code, "handleBold");
275
273
  (0, _toolbar.handleBold)(ctx, cellInput);
276
274
  } else if (e.code === "KeyI") {
277
- console.log(e.code, "handleItalic");
278
275
  (0, _toolbar.handleItalic)(ctx, cellInput);
279
276
  } else if (e.code === "KeyU") {
280
- console.log(e.code, "handleUnderline");
281
277
  (0, _toolbar.handleUnderline)(ctx, cellInput);
282
278
  } else if (e.code === "Backslash") {
283
279
  (0, _selection.deleteSelectedCellFormat)(ctx);
@@ -396,7 +392,6 @@ function handleGlobalKeyDown(ctx, cellInput, fxInput, e, cache, handleUndo, hand
396
392
  return __awaiter(this, void 0, void 0, function () {
397
393
  var kcode, kstr, allowEdit, isFxInput, ignoredKeys, restCod, last, row_index, col_index, last, row_index, col_index;
398
394
  return __generator(this, function (_d) {
399
- console.log(e.code, "handleGlobalKeyDown");
400
395
  if (e.shiftKey && e.code === "Space") {
401
396
  e.stopImmediatePropagation();
402
397
  e.stopPropagation();
@@ -473,17 +468,14 @@ function handleGlobalKeyDown(ctx, cellInput, fxInput, e, cache, handleUndo, hand
473
468
  e.preventDefault();
474
469
  } else {
475
470
  if (e.ctrlKey || e.metaKey) {
476
- console.log(e.code, "handleWithCtrlOrMetaKey in handleGlobalKeyDown");
477
471
  handleWithCtrlOrMetaKey(ctx, cache, e, cellInput, fxInput, handleUndo, handleRedo);
478
472
  return [2];
479
473
  }
480
474
  if (e.shiftKey && (kstr === "ArrowUp" || kstr === "ArrowDown" || kstr === "ArrowLeft" || kstr === "ArrowRight")) {
481
- console.log(e.code, "handleShiftWithArrowKey in handleGlobalKeyDown");
482
475
  handleShiftWithArrowKey(ctx, e);
483
476
  } else if (kstr === "Escape") {
484
477
  ctx.contextMenu = {};
485
478
  } else if (kstr === "Delete" || kstr === "Backspace") {
486
- console.log("Delete");
487
479
  if (!allowEdit) return [2];
488
480
  if (ctx.activeImg != null) {
489
481
  (0, _2.removeActiveImage)(ctx);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fileverse-dev/fortune-core",
3
- "version": "1.2.90-bold-2",
3
+ "version": "1.2.90-bold-3",
4
4
  "main": "lib/index.js",
5
5
  "module": "es/index.js",
6
6
  "typings": "lib/index.d.ts",