New submission from Mark Roseman:

For popup menus, control-click works, but right-click on mouse buttons that 
support it, doesn't work.

This is a followup to #10404, last addressed in 2010.

As noted there, right click behaviour should be supported.

The right click Tk text bindings on Mac (which is B2) seem to bind both to the 
virtual 'PasteSelection' event, and also to fast-scroll through a large file is 
you click and drag with the right mouse button. Both of these are blatant 
problems with Tk's text.tcl.

The issue when trying to fix this before was when a B2 (context menu) binding 
was added to the text widget, both that and the bogus B2 bindings fired. This 
is because Tk can fire multiple bindings for a widget (default is bindings for 
the widget itself, the widget's toplevel, the widget's class, and 'all'). 

There is a way to short-circuit this in Tcl (basically the widget-specific 
binding calls 'break', which prevents the others from firing). The simpler 
alternative is probably just redefining the alternative class-level (Text) 
bindings.

In other words, yeah, this should be pretty easily fixable.

----------
messages: 248092
nosy: markroseman, ned.deily, ronaldoussoren, terry.reedy
priority: normal
severity: normal
status: open
title: right-mouse click in IDLE on Mac doesn't work
type: behavior
versions: Python 2.7, Python 3.4, Python 3.5

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue24801>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to