mirror of
https://github.com/python/cpython.git
synced 2025-10-28 04:04:44 +00:00
Issue #24570: Right-click for context menus now work on Mac Aqual also.
Patch by Mark Roseman.
This commit is contained in:
parent
8f278f1662
commit
3c7eccd0a6
2 changed files with 13 additions and 5 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue