Normand Briere
2019-08-15 33504fc9a180903aace77613264550754fba5706
cTree.java
....@@ -20,7 +20,8 @@
2020 {
2121 public void mousePressed(MouseEvent e)
2222 {
23
- if (e.isPopupTrigger())
23
+ //if (e.isPopupTrigger()) // Works only on mouse released on Windows.
24
+ if ((e.getModifiers() & InputEvent.BUTTON3_MASK) == InputEvent.BUTTON3_MASK)
2425 {
2526 int row = getClosestRowForLocation(e.getX(), e.getY());
2627 if (!isRowSelected(row))