Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: block actions of router while checkbox enabled #148

Merged
merged 4 commits into from
Feb 23, 2024

Conversation

liuycy
Copy link
Contributor

@liuycy liuycy commented Feb 22, 2024

相关 issue #5989 #6021

具体改动如下

  • 在显示多选框时,优先触发选择操作,防止跳进更深层的文件夹里
  • 在显示多选框时,改为按住 alt 键点击打开文件夹(MacOS 则按住 option 键)

演示效果如下

0.mp4
1.mp4

@itsHenry35
Copy link
Contributor

itsHenry35 commented Feb 23, 2024

那就希望可以在复选框启用时支持双击打开文件夹

@liuycy
Copy link
Contributor Author

liuycy commented Feb 23, 2024

那就希望可以加入时间控制,再复选框启用时支持双击打开文件夹

双击打开这个我理解,时间控制是什么? 😂

@itsHenry35
Copy link
Contributor

那就希望可以加入时间控制,再复选框启用时支持双击打开文件夹

双击打开这个我理解,时间控制是什么? 😂

ignore it,就加个双击打开会好很多

@liuycy
Copy link
Contributor Author

liuycy commented Feb 23, 2024

那就希望可以加入时间控制,再复选框启用时支持双击打开文件夹

双击打开这个我理解,时间控制是什么? 😂

ignore it,就加个双击打开会好很多

试了一下,如果加了双击打开操作,两次单击间隔时间短了就会跳进去了,给单击事件加 setTimeout 来区分 双击/单击 的话,又有明显的延迟感,所以我改成组合按键点击打开的操作了

另外,我把 LinkWithPush 组件加回去了,因为这样可以用鼠标中键在新标签页打开文件夹

@xhofe xhofe merged commit 77a3d9d into AlistGo:main Feb 23, 2024
3 of 4 checks passed
@itsHenry35
Copy link
Contributor

我觉得还有一个细节:如果按下alt键时鼠标显示为手标志,不按下时显示为普通指针标志

@wongz
Copy link

wongz commented Mar 21, 2024

使用其他文件管理app时发现更好的方式:在启用复选框时,勾选一条出现底部工具条时,此时点击其他条目为选择而不是进入目录,未出现底部工具条时为进入目录

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants