Let Mac users have some fun too

- enables BUTTON2 click as an alternative for (ctrl/meta)+click on OSX
This commit is contained in:
Jakub Valtar
2016-04-29 18:20:16 +02:00
parent 8e40b89acc
commit 1cb8773ba5

View File

@@ -84,7 +84,7 @@ public class JavaTextAreaPainter extends TextAreaPainter
if ((evt.isControlDown() && !Platform.isMacOS()) || evt.isMetaDown()) {
handleCtrlClick(evt);
}
} else if (!Platform.isMacOS() && evt.getButton() == MouseEvent.BUTTON2) {
} else if (evt.getButton() == MouseEvent.BUTTON2) {
handleCtrlClick(evt);
}
}