else if ((e.getButton() == 2 || e.isMetaDown())) onReleased(e);
else if ((e.getButton() == 2 || (e.isControlDown() || e.isMetaDown()))) onReleased(e);
    private void onClick(MouseEvent e)    {    	if (e.getButton() == 1 && !e.isMetaDown()) {    		if (e.getClickCount() == 1) timer.start();    		else if (e.getClickCount() == 2)    		{    			timer.stop();    			doubleClick();    		}    	}        else if ((e.getButton() == 2 || e.isMetaDown())) onReleased(e);    }