Skip to content

A reactive notebook for Python — run reproducible experiments, query with SQL, execute as a script, deploy as an app, and version with git. Stored as pure Python. All in a modern, AI-native editor.

Fix `Enter` key handling for delete confirmation button (#5689)

Trevor Manz92c7bbb6f9a6
diff --git a/frontend/src/components/editor/cell/PendingDeleteConfirmation.tsx b/frontend/src/components/editor/cell/PendingDeleteConfirmation.tsx
index 24090d1dae..24be72f24e 100644
--- a/frontend/src/components/editor/cell/PendingDeleteConfirmation.tsx
+++ b/frontend/src/components/editor/cell/PendingDeleteConfirmation.tsx
@@ -99,7 +99,13 @@ export const PendingDeleteConfirmation: React.FC<{ cellId: CellId }> = ({
Are you sure you want to delete?
</p>
<FocusScope autoFocus={true}>
- <div className="flex items-center gap-2">
+ <div
+ className="flex items-center gap-2"
+ onKeyDown={(e) => {
+ // Stop propagation to prevent Cell's resumeCompletionHandler
+ e.stopPropagation();
+ }}
+ >
<Button
size="xs"
variant="ghost"