I'm simplifying the check to: #ifdef XP_MACOSX var modifKey = aEvent.metaKey || aEvent.shiftKey; #else var modifKey = aEvent.ctrlKey || aEvent.shiftKey; #endif if (aEvent.button == 2 || (aEvent.button == 0 && !modifKey)) return;
I'm simplifying the check to:
#ifdef XP_MACOSX
var modifKey = aEvent.metaKey || aEvent.shiftKey;
#else
var modifKey = aEvent.ctrlKey || aEvent.shiftKey;
#endif
if (aEvent.button == 2 || (aEvent.button == 0 && !modifKey))
return;