fix: prevent history search dropdown from opening upon cmd-k on selected text (#11288)

This commit is contained in:
Apoorv Mishra authored and GitHub committed 2026-01-27 17:47:33 -05:00
1 parent 8324859de9
commit c6177bc4d8
1 file changed
+1
@@ -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);