Skip to content

Commit 8c91170

Browse files
authored
fix: allow deleting from input in preview mode (#5194)
Fixes https://discord.com/channels/955905230107738152/1369211497590554675 Delete on canvas is separateed from the one in builder so we can safely remove preventDefault to allow entering or deleting from inputs in preview mode.
1 parent 29e455a commit 8c91170

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

apps/builder/app/canvas/shared/commands.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ export const { emitCommand, subscribeCommands } = createCommandsEmitter({
2929
{
3030
name: "deleteInstanceCanvas",
3131
defaultHotkeys: ["backspace", "delete"],
32+
preventDefault: false,
3233
disableHotkeyOutsideApp: true,
3334
// We are not disabling "Backspace" or "Delete" on the canvas. This is the main reason we have separate functions: deleteInstanceCanvas and deleteInstanceBuilder.
3435
disableOnInputLikeControls: false,

0 commit comments

Comments
 (0)