mirror of
https://github.com/quorafind/Obsidian-Float-Search.git
synced 2026-07-22 07:30:25 +00:00
feat: support click to collapse
This commit is contained in:
parent
b62b664694
commit
38bf9d858b
1 changed files with 5 additions and 1 deletions
|
|
@ -1,10 +1,11 @@
|
|||
import {
|
||||
apiVersion,
|
||||
App,
|
||||
Editor,
|
||||
MarkdownView,
|
||||
Menu,
|
||||
Modal, Notice, OpenViewState,
|
||||
Plugin, SearchView,
|
||||
Plugin, requireApiVersion, SearchView,
|
||||
TAbstractFile,
|
||||
TFile,
|
||||
Workspace,
|
||||
|
|
@ -588,6 +589,9 @@ class FloatSearchModal extends Modal {
|
|||
|
||||
if(e.altKey || !this.fileLeaf) {
|
||||
while (targetElement) {
|
||||
if (targetElement.classList.contains('tree-item-icon')) {
|
||||
break;
|
||||
}
|
||||
if (targetElement.classList.contains('tree-item')) {
|
||||
this.close();
|
||||
break;
|
||||
|
|
|
|||
Loading…
Reference in a new issue