This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author terry.reedy
Recipients kbk, markroseman, ned.deily, roger.serwy, terry.reedy
Date 2015-09-03.17:56:07
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1441302968.32.0.0780068745769.issue24988@psf.upfronthosting.co.za>
In-reply-to
Content
The standard on Windows is to bring up a context menu on right-button-release, not on r-b-press.  What about linux and mac?  

Thunderbird and Notepad++ move the insertion cursor on rb-press, That is the paste position even if the mouse is moved before release. Notepad does not move the insert cursor. MS Word is confusing, erasing the cursor when the menu is displayed and moving it when the menu goes away.

EditorWindow.py has this code for context menu event binding:

        if macosxSupport.isAquaTk():
            # 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>.)
            text.bind("<Control-Button-1>",self.right_menu_event)
        else:
            # Elsewhere, use right-click for pulldown menus.
            text.bind("<3>",self.right_menu_event)

Testing with my middle button, a press and release act the same as left click to move the insertion cursor to the mouse cursor. Moving my mouse while holding the middle button down moves the text pane within the text window. The insertion cursor is not moved. This is pretty much redundant with using the scroll wheel or scroll bar.

Would it confuse Mac users to have rt-click for context menu only work in debugger?  Could we make rt-click work in editor windows by recording position or time on press and compare position or time on release?
History
Date User Action Args
2015-09-03 17:56:08terry.reedysetrecipients: + terry.reedy, kbk, ned.deily, roger.serwy, markroseman
2015-09-03 17:56:08terry.reedysetmessageid: <1441302968.32.0.0780068745769.issue24988@psf.upfronthosting.co.za>
2015-09-03 17:56:08terry.reedylinkissue24988 messages
2015-09-03 17:56:07terry.reedycreate