mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-05-19 02:21:38 +08:00
fix: 在行级标签上选择文本时不打开搜索 (#13976)
fix https://github.com/siyuan-note/siyuan/issues/13862
This commit is contained in:
parent
f43a10dc27
commit
7f9d00fbf1
@ -2388,7 +2388,7 @@ export class WYSIWYG {
|
||||
}
|
||||
|
||||
const tagElement = hasClosestByAttribute(event.target, "data-type", "tag");
|
||||
if (tagElement && !event.altKey && !event.shiftKey) {
|
||||
if (tagElement && !event.altKey && !event.shiftKey && range.toString() === "") {
|
||||
/// #if !MOBILE
|
||||
openGlobalSearch(protyle.app, `#${tagElement.textContent}#`, !ctrlIsPressed, {method: 0});
|
||||
hideElements(["dialog"]);
|
||||
|
Loading…
Reference in New Issue
Block a user