src code

class method Event.isRightClick

Event.isRightClick(event) → Boolean

Determines whether a button-related mouse event involved the right mouse button.

Keep in mind that the "left" mouse button is actually the "secondary" mouse button. When a mouse is in left-handed mode, the browser will report clicks of the left button as "left-clicks."

This method can be called either as an instance method or as a generic method. If calling as a generic, pass the instance in as the first argument.