Skip to content

Commit 7052998

Browse files
committed
fix Enter key on file in Files on macOS
1 parent b210e57 commit 7052998

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/docks/filesdock.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -1160,7 +1160,8 @@ void FilesDock::keyPressEvent(QKeyEvent *event)
11601160
ui->treeView->setCurrentIndex(dirsIndex);
11611161
return;
11621162
}
1163-
openClip(filePath);
1163+
if (!MAIN.open(filePath))
1164+
openClip(filePath);
11641165
}
11651166
}
11661167
event->accept();

0 commit comments

Comments
 (0)