Class orion.textview.ContextMenuEvent
This is the event sent when the user right clicks or otherwise invokes the context menu of the view.
See:
orion.textview.TextView
orion.textview.TextView#event:onContextMenu
Defined in: </shared/eclipse/e4/orion/I201301232230/plugins/org.eclipse.orion.client.editor/web/orion/textview/textView.js>.
Constructor Attributes | Constructor Name and Description |
---|---|
Field Attributes | Field Name and Description |
---|---|
Determines whether the user agent context menu should be shown.
|
|
If called prevents the user agent context menu from showing.
|
|
The pointer location on the x axis, relative to the screen.
|
|
The pointer location on the y axis, relative to the screen.
|
|
The pointer location on the x axis, relative to the document the user is editing.
|
|
The pointer location on the y axis, relative to the document the user is editing.
|
Field Detail
{Boolean}
defaultPrevented
Determines whether the user agent context menu should be shown. It is shown by default.
{Function}
preventDefault
If called prevents the user agent context menu from showing.
{Number}
screenX
The pointer location on the x axis, relative to the screen. This is copied from the DOM contextmenu event.screenX property.
{Number}
screenY
The pointer location on the y axis, relative to the screen. This is copied from the DOM contextmenu event.screenY property.
{Number}
x
The pointer location on the x axis, relative to the document the user is editing.
{Number}
y
The pointer location on the y axis, relative to the document the user is editing.