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

This commit is contained in:
Apoorv Mishra
2026-01-28 04:17:33 +05:30
committed by GitHub
parent 8324859de9
commit c6177bc4d8
@@ -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);