Skip to content

Commit db4ca52

Browse files
HerstAurelioDeRosa
authored andcommitted
contextmenu: Menu button trigger not just on root
Closes jquerygh-1065
1 parent 7a6ba16 commit db4ca52

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

entries/contextmenu.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
</signature>
2525
<longdesc>
2626
<p>This method is a shortcut for <code>.on( "contextmenu", handler )</code> in the first two variations, and <code>.trigger( "contextmenu" )</code> in the third.
27-
The <code>contextmenu</code> event is sent to an element when the right button of the mouse is clicked on it, but before the context menu is displayed. In case the context menu key is pressed, the event is triggered on the <code>html</code> element. Any HTML element can receive this event.
27+
The <code>contextmenu</code> event is sent to an element when the right button of the mouse is clicked on it, but before the context menu is displayed. In case the context menu key is pressed, the event is triggered on the <code>html</code> element or the currently focused element. Any HTML element can receive this event.
2828
For example, consider the HTML:</p>
2929
<pre><code>
3030
&lt;div id="target"&gt;

0 commit comments

Comments
 (0)