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.

Title: Idle: refine right-click behavior
Type: enhancement Stage: needs patch
Components: IDLE Versions: Python 3.9
Status: open Resolution:
Dependencies: Superseder:
Assigned To: terry.reedy Nosy List: markroseman, terry.reedy
Priority: normal Keywords:

Created on 2015-09-26 23:12 by terry.reedy, last changed 2022-04-11 14:58 by admin.

Messages (1)
msg251669 - (view) Author: Terry J. Reedy (terry.reedy) * (Python committer) Date: 2015-09-26 23:12
Spinoff from #24988, where I noted "The standard on Windows is to bring up a context menu on right-button-release, not on r-b-press." and asked "What about linux and mac?"

The question is relevant for 'Go to File/Line'.  Look at text where pressed or where released?

Current code in multiple places is
        if macosxSupport.isAquaTk():
            listbox.bind("<ButtonPress-2>", self.popup_event)
            listbox.bind("<Control-Button-1>", self.popup_event)
            listbox.bind("<ButtonPress-3>", self.popup_event)

Also for paste: where insert?

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.

Additional note: 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.
Date User Action Args
2022-04-11 14:58:21adminsetgithub: 69431
2019-09-20 20:46:55terry.reedysetversions: + Python 3.9, - Python 2.7, Python 3.4, Python 3.5, Python 3.6
2017-06-19 19:08:28terry.reedysetcomponents: + IDLE
2015-10-22 16:14:33markrosemansetnosy: + markroseman
2015-09-26 23:12:18terry.reedycreate