diff options
author | Terry Jan Reedy <tjreedy@udel.edu> | 2015-09-23 01:11:06 (GMT) |
---|---|---|
committer | Terry Jan Reedy <tjreedy@udel.edu> | 2015-09-23 01:11:06 (GMT) |
commit | 6f1f091e80d790f338d2225b017d2d2cf9123af7 (patch) | |
tree | 91d588c18c03526244e10e91743db0d83314fb86 /Lib/idlelib/EditorWindow.py | |
parent | 697c43d389462f3f1f2ff5fb867442d712f77cb4 (diff) | |
parent | 5e6201e8a9e08d11348ffca27d85d88d24d74f5d (diff) | |
download | cpython-6f1f091e80d790f338d2225b017d2d2cf9123af7.zip cpython-6f1f091e80d790f338d2225b017d2d2cf9123af7.tar.gz cpython-6f1f091e80d790f338d2225b017d2d2cf9123af7.tar.bz2 |
Merge with 3.5
Diffstat (limited to 'Lib/idlelib/EditorWindow.py')
-rw-r--r-- | Lib/idlelib/EditorWindow.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Lib/idlelib/EditorWindow.py b/Lib/idlelib/EditorWindow.py index 496eecd..dacb843 100644 --- a/Lib/idlelib/EditorWindow.py +++ b/Lib/idlelib/EditorWindow.py @@ -175,13 +175,13 @@ class EditorWindow(object): if macosxSupport.isAquaTk(): # Command-W on editorwindows doesn't work without this. text.bind('<<close-window>>', self.close_event) - # Some OS X systems have only one mouse button, - # so use control-click for pulldown menus there. - # (Note, AquaTk defines <2> as the right button if - # present and the Tk Text widget already binds <2>.) + # Some OS X systems have only one mouse button, so use + # control-click for popup context menus there. For two + # buttons, AquaTk defines <2> as the right button, not <3>. text.bind("<Control-Button-1>",self.right_menu_event) + text.bind("<2>", self.right_menu_event) else: - # Elsewhere, use right-click for pulldown menus. + # Elsewhere, use right-click for popup menus. text.bind("<3>",self.right_menu_event) text.bind("<<cut>>", self.cut) text.bind("<<copy>>", self.copy) |