Fix Opening Selected Resource

This commit is contained in:
Konloch 2021-07-26 21:52:20 -07:00
parent 265323f33c
commit f7e47540dc

View file

@ -403,21 +403,21 @@ public class ResourceListPane extends TranslatedVisibleComponent implements File
tree.expandPath(path);
});
/*this.tree.addMouseListener(new MouseAdapter() {
this.tree.addMouseListener(new MouseAdapter() {
@Override
public void mousePressed(MouseEvent e) {
openPath(tree.getPathForLocation(e.getX(), e.getY()));
}
});*/
});
this.tree.addTreeSelectionListener(arg0 -> {
/*this.tree.addTreeSelectionListener(arg0 -> {
if (cancel) {
cancel = false;
return;
}
openPath(arg0.getPath());
});
});*/
this.tree.addKeyListener(new KeyListener()
{