diff --git a/src/waldiez/containers/flow/hooks/useKeys.ts b/src/waldiez/containers/flow/hooks/useKeys.ts index db22b1c..e2980cb 100644 --- a/src/waldiez/containers/flow/hooks/useKeys.ts +++ b/src/waldiez/containers/flow/hooks/useKeys.ts @@ -72,7 +72,8 @@ export const useKeys = (flowId: string, onSave?: ((flow: string) => void) | null } }; const onKeyDown = (event: KeyboardEvent | undefined) => { - if (event?.key === "Delete") { + // also on Backspace + if (event?.key === "Delete" || event?.key === "Backspace") { if (isFlowVisible()) { onDeleteKey(event); }