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: arrow key navigation taking precedence in inputs (#3244)

Akshay Agrawalfe38c8550e81
diff --git a/frontend/src/components/editor/Cell.tsx b/frontend/src/components/editor/Cell.tsx
index edecf342dc..33d8ab0fb9 100644
--- a/frontend/src/components/editor/Cell.tsx
+++ b/frontend/src/components/editor/Cell.tsx
@@ -480,11 +480,17 @@ const CellComponent = (
});
useKeydownOnElement(editing ? cellRef : null, {
- ArrowDown: () => {
+ ArrowDown: (evt) => {
+ if (evt && Events.fromInput(evt)) {
+ return false;
+ }
moveToNextCell({ cellId, before: false, noCreate: true });
return true;
},
- ArrowUp: () => {
+ ArrowUp: (evt) => {
+ if (evt && Events.fromInput(evt)) {
+ return false;
+ }
moveToNextCell({ cellId, before: true, noCreate: true });
return true;
},