jsbExtendedMouse
Setting this flag allows a behavior to receive mouse events associated with mouse buttons other than the default button (usually the left mouse button).
Syntax
behavior.jsbExtendedMouse = true;
Example
var rightclicker = jsb.behavior.extend({
jsbExtendedMouse: true,
onmousedown: function(element, event, button) {
if (button == 1) { // right button
event.preventDefault();
this.showContextMenu(element); // show a custom context menu
}
}
});
Notes
By default, behaviors only receive mouse events associated with the default mouse button.