From b4ab07bd78871f3886cf0291279d2f2715a73c24 Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Sat, 29 Nov 2025 12:33:54 +0200 Subject: [PATCH] feat(board): add keyboard navigation for "Add column" button --- apps/client/src/widgets/collections/board/index.tsx | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/apps/client/src/widgets/collections/board/index.tsx b/apps/client/src/widgets/collections/board/index.tsx index 2f8c0b6de..a50213a31 100644 --- a/apps/client/src/widgets/collections/board/index.tsx +++ b/apps/client/src/widgets/collections/board/index.tsx @@ -204,8 +204,19 @@ function AddNewColumn({ api, isInRelationMode }: { api: BoardApi, isInRelationMo setIsCreatingNewColumn(true); }, []); + const keydownCallback = useCallback((e: KeyboardEvent) => { + if (e.key === "Enter") { + setIsCreatingNewColumn(true); + } + }, []); + return ( -
+
{!isCreatingNewColumn ? <> {" "}