Merge pull request #491 from dozmus/features/fix-open-file-empty-space

fix clicking on empty space in row not opening file
This commit is contained in:
Konloch 2024-04-08 19:11:00 -07:00 committed by GitHub
commit 2a9fafd317
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

AI 샘플 코드 생성 중입니다

Loading...

View File

@ -484,8 +484,8 @@ public class ResourceListPane extends TranslatedVisibleComponent implements File
this.tree.addMouseListener(new MouseAdapter() {
@Override
public void mousePressed(MouseEvent e) {
if(e.getButton() == MouseEvent.BUTTON1) //right-click
openPath(tree.getPathForLocation(e.getX(), e.getY()));
if (e.getButton() == MouseEvent.BUTTON1) // left-click
openPath(tree.getClosestPathForLocation(e.getX(), e.getY()));
}
});