mirror of
https://github.com/outline/outline.git
synced 2026-06-13 11:25:03 +03:00
fix: prevent history search dropdown from opening upon cmd-k on selected text (#11288)
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user