diff --git a/sections/event-types.txt b/sections/event-types.txt index 9b72a66..a2c51db 100644 --- a/sections/event-types.txt +++ b/sections/event-types.txt @@ -1460,6 +1460,56 @@ myDiv.addEventListener("auxclick", function(e) { * If the event target is focusable, the default action MUST be to give that element document focus. +
contextmenu
+ + ++------------------+--------------------------------------------------------------------------------------+ event-definition + =| % | | + +------------------+--------------------------------------------------------------------------------------+ + +| Type | contextmenu | + +| Interface | {{PointerEvent}} | + +| Sync / Async | Sync | + +| Bubbles | Yes | + +| Trusted Targets | Element | + +| Cancelable | Yes | + +| Composed | Yes | + +| Default action | Invoke a context menu if supported. | + +| Context
| | + ++------------------+--------------------------------------------------------------------------------------+ + + A user agent MUST dispatch this event before invoking a context menu. + + When the EVENT{contextmenu} event is triggered by right mouse button, the + EVENT{contextmenu} event MUST be dispatched after the EVENT{mousedown} event. + +

+ Depending on the platform, the EVENT{contextmenu} event may be dispatched + before or after the EVENT{mouseup} event. +

+
dblclick
++------------------+--------------------------------------------------------------------------------------+ event-definition @@ -1883,7 +1933,7 @@ myDiv.addEventListener("auxclick", function(e) { +| Trusted Targets | Element | +| Cancelable | Yes | +| Composed | Yes | - +| Default action | Invoke a context menu (in combination with the right mouse button, if supported) | + +| Default action | None | +| Context
|