Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
3c7eccd0
Commit
3c7eccd0
authored
Sep 22, 2015
by
Terry Jan Reedy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue #24570: Right-click for context menus now work on Mac Aqual also.
Patch by Mark Roseman.
parent
8f278f16
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
5 deletions
+13
-5
Lib/idlelib/EditorWindow.py
Lib/idlelib/EditorWindow.py
+5
-5
Lib/idlelib/PyShell.py
Lib/idlelib/PyShell.py
+8
-0
No files found.
Lib/idlelib/EditorWindow.py
View file @
3c7eccd0
...
...
@@ -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 p
ulldown
menus.
# Elsewhere, use right-click for p
opup
menus.
text
.
bind
(
"<3>"
,
self
.
right_menu_event
)
text
.
bind
(
"<<cut>>"
,
self
.
cut
)
text
.
bind
(
"<<copy>>"
,
self
.
copy
)
...
...
Lib/idlelib/PyShell.py
View file @
3c7eccd0
...
...
@@ -1547,6 +1547,14 @@ def main():
root
.
withdraw
()
flist
=
PyShellFileList
(
root
)
macosxSupport
.
setupApp
(
root
,
flist
)
if
macosxSupport
.
isAquaTk
():
# There are some screwed up <2> class bindings for text
# widgets defined in Tk which we need to do away with.
# See issue #24801.
root
.
unbind_class
(
'Text'
,
'<B2>'
)
root
.
unbind_class
(
'Text'
,
'<B2-Motion>'
)
root
.
unbind_class
(
'Text'
,
'<<PasteSelection>>'
)
if
enable_edit
:
if
not
(
cmd
or
script
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment