update to v1.2.0 细节优化

This commit is contained in:
kohgylw 2023-12-29 23:20:59 +08:00
parent d5813216b8
commit 30cb0851e2
3 changed files with 2 additions and 2 deletions

View File

@ -286,7 +286,7 @@ public class FilesTable extends JTable {
* @return Object 被双击的项目如果是文件夹则返回Folder对象如果是文件则返回Node对象如果非双击操作则返回null
*/
public Object getDoubleClickItem(MouseEvent e) {
if (e.getClickCount() == 2) {
if (e.getButton() == MouseEvent.BUTTON1 && e.getClickCount() == 2) {
int row = rowAtPoint(e.getPoint());
if (row >= 0 && row < folders.size()) {
return folders.get(row);

View File

@ -1,5 +1,5 @@
#Generated by Maven Integration for Eclipse
#Fri Dec 29 23:07:37 CST 2023
#Fri Dec 29 23:20:32 CST 2023
m2e.projectLocation=/Users/kohgylw/Programs/java_workspace/kiftd
m2e.projectName=kiftd
groupId=kohgylw