diff options
Diffstat (limited to 'library/demos/ctext.tcl')
-rw-r--r-- | library/demos/ctext.tcl | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/library/demos/ctext.tcl b/library/demos/ctext.tcl index 502c9d0..5acc82f 100644 --- a/library/demos/ctext.tcl +++ b/library/demos/ctext.tcl @@ -50,7 +50,11 @@ $c bind text <Return> "textInsert $c \\n" $c bind text <Control-h> "textBs $c" $c bind text <BackSpace> "textBs $c" $c bind text <Delete> "textDel $c" -$c bind text <Button-2> "textPaste $c @%x,%y" +if {[tk windowingsystem] eq "aqua"} { + $c bind text <Button-3> "textPaste $c @%x,%y" +} else { + $c bind text <Button-2> "textPaste $c @%x,%y" +} # Next, create some items that allow the text's anchor position # to be edited. |