+/*
+ * Instantlauncher. Copyright ©2012-2019, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of version 3 of the GNU Lesser General Public License
+ * or later as published by the Free Software Foundation.
+ */
+
package eu.svjatoslav.instantlauncher.menu;
import eu.svjatoslav.commons.gui.dialog.ExceptionDialog;
public void mouseClicked(final MouseEvent e) {
try {
- if (e.getButton() == 1)
+ if (e.getButton() == 1) // left mouse click
parentMenu.menuItemSelected(file);
- if (e.getButton() == 2)
+ if (e.getButton() == 2) // middle mouse click
parentMenu.menuItemSelectedAlternative2(file);
- if (e.getButton() == 3)
+ if (e.getButton() == 3) //right mouse click
parentMenu.menuItemSelectedAlternative(file);
} catch (final Exception ex) {
new ExceptionDialog(ex);