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:
commit
2a9fafd317
|
@ -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()));
|
||||
}
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user