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
|
+ +| Interface | {{PointerEvent}} |
+ +| Sync / Async | Sync |
+ +| Bubbles | Yes |
+ +| Trusted Targets | Element
|
+ +| Cancelable | Yes |
+ +| Composed | Yes |
+ +| Default action | Invoke a context menu if supported. |
+ +| ContextWindow
true
if KEYCAP{Alt} |
+ | | modifier was active, otherwise false
true
if KEYCAP{Control} |
+ | | modifier was active, otherwise false
true
if KEYCAP{Shift} |
+ | | modifier was active, otherwise false
true
if KEYCAP{Meta} |
+ | | modifier was active, otherwise false
0
if no buttons pressednull
+ Depending on the platform, the EVENT{contextmenu} event may be dispatched + before or after the EVENT{mouseup} event. +
+Element
|
+| Cancelable | Yes |
+| Composed | Yes |
- +| Default action | Invoke a context menu (in combination with the right mouse button, if supported) |
+ +| Default action | None |
+| ContextWindow
- Many implementations will invoke a context menu as the default - action of this event if the right mouse button is being released. -
-In some implementation environments, such as a browser, a EVENT{mouseup} event can be dispatched even if the pointing device