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); tree.expandPath(path);
}); });
/*this.tree.addMouseListener(new MouseAdapter() { this.tree.addMouseListener(new MouseAdapter() {
@Override @Override
public void mousePressed(MouseEvent e) { public void mousePressed(MouseEvent e) {
openPath(tree.getPathForLocation(e.getX(), e.getY())); openPath(tree.getPathForLocation(e.getX(), e.getY()));
} }
});*/ });
this.tree.addTreeSelectionListener(arg0 -> { /*this.tree.addTreeSelectionListener(arg0 -> {
if (cancel) { if (cancel) {
cancel = false; cancel = false;
return; return;
} }
openPath(arg0.getPath()); openPath(arg0.getPath());
}); });*/
this.tree.addKeyListener(new KeyListener() this.tree.addKeyListener(new KeyListener()
{ {