Artifact
5def039c851668d27a7d79e21d9e4e7eacf70c82d74d859a5a3a59ec17844fa4:
Attachment "09ef7b170f.diff" to
ticket [09ef7b17]
added by
chrstphrchvz
2020-04-22 15:59:24.
diff --git doc/event.n doc/event.n
index 9ab48e5b7..5c809d729 100644
--- doc/event.n
+++ doc/event.n
@@ -372,6 +372,10 @@ following way:
\fB<<Clear>>\fR
Delete the currently selected widget contents.
.TP
+\fB<<ContextMenu>>\fR
+Post a context menu at the mouse location. (This event
+has meaningful \fB%x\fR and \fB%y\fR substitutions.)
+.TP
\fB<<Copy>>\fR
Copy the currently selected widget contents to the clipboard.
.TP
diff --git library/tk.tcl library/tk.tcl
index 87e058696..a79b550cf 100644
--- library/tk.tcl
+++ library/tk.tcl
@@ -457,7 +457,7 @@ switch -exact -- [tk windowingsystem] {
event add <<Paste>> <Command-Key-v> <Key-F4> <Command-Lock-Key-V>
event add <<PasteSelection>> <ButtonRelease-3>
event add <<Clear>> <Clear>
- event add <<ContextMenu>> <Button-2>
+ event add <<ContextMenu>> <Button-2> <Control-Button-1>
# Official bindings
# See http://support.apple.com/kb/HT1343