i've developed a firefox addon with a simple button on the status bar. Now i want to get the right and the left click.
Mi code look like this below
<popupset>
<menupopup id="intransContextMenu" position="overlap">
<menuitem label="settings" onclick="alert('test');" type="checkbox"/>
<menuitem label="test" onclick="alert('test nr 2');" type="checkbox"/>
</menupopup>
</popupset>
<statusbar id="status-bar">
<statusbarpanel id="2" label="test" tooltip="savetip" context="intransContextMenu"/>
</statusbar>
Right click on test label open the menu popup. It seems working, but the left click is triggered before the right click on the label TEST.
Is there any way that provide me isolating the right and the left click? Triggering left click when left click occours and right click when right click occurs.
Thanks