From c6177bc4d8d094def2b346d91d2ea73d1c38e6f7 Mon Sep 17 00:00:00 2001 From: Apoorv Mishra Date: Wed, 28 Jan 2026 04:17:33 +0530 Subject: [PATCH] fix: prevent history search dropdown from opening upon cmd-k on selected text (#11288) --- app/editor/components/SelectionToolbar.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/app/editor/components/SelectionToolbar.tsx b/app/editor/components/SelectionToolbar.tsx index 411d5a50f0..994c197e43 100644 --- a/app/editor/components/SelectionToolbar.tsx +++ b/app/editor/components/SelectionToolbar.tsx @@ -163,6 +163,7 @@ export function SelectionToolbar(props: Props) { ev.key.toLowerCase() === "k" && !view.state.selection.empty ) { + ev.preventDefault(); ev.stopPropagation(); if (activeToolbar === Toolbar.Link) { setActiveToolbar(Toolbar.Menu);