@fileverse-dev/fortune-core 1.2.90-bold-3 → 1.2.90-toast-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/es/events/keyboard.js +1 -0
- package/lib/events/keyboard.js +1 -0
- package/package.json +1 -1
package/es/events/keyboard.js
CHANGED
|
@@ -466,6 +466,7 @@ export function handleGlobalKeyDown(ctx, cellInput, fxInput, e, cache, handleUnd
|
|
|
466
466
|
} else if (kstr === "Escape") {
|
|
467
467
|
ctx.contextMenu = {};
|
|
468
468
|
} else if (kstr === "Delete" || kstr === "Backspace") {
|
|
469
|
+
console.log("Delete");
|
|
469
470
|
if (!allowEdit) return [2];
|
|
470
471
|
if (ctx.activeImg != null) {
|
|
471
472
|
removeActiveImage(ctx);
|
package/lib/events/keyboard.js
CHANGED
|
@@ -476,6 +476,7 @@ function handleGlobalKeyDown(ctx, cellInput, fxInput, e, cache, handleUndo, hand
|
|
|
476
476
|
} else if (kstr === "Escape") {
|
|
477
477
|
ctx.contextMenu = {};
|
|
478
478
|
} else if (kstr === "Delete" || kstr === "Backspace") {
|
|
479
|
+
console.log("Delete");
|
|
479
480
|
if (!allowEdit) return [2];
|
|
480
481
|
if (ctx.activeImg != null) {
|
|
481
482
|
(0, _2.removeActiveImage)(ctx);
|