Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Idle: refine right-click behavior #69431

Open
terryjreedy opened this issue Sep 26, 2015 · 1 comment
Open

Idle: refine right-click behavior #69431

terryjreedy opened this issue Sep 26, 2015 · 1 comment
Assignees
Labels
3.9 only security fixes topic-IDLE type-feature A feature request or enhancement

Comments

@terryjreedy
Copy link
Member

BPO 25244
Nosy @terryjreedy, @roseman

Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

Show more details

GitHub fields:

assignee = 'https://github.com/terryjreedy'
closed_at = None
created_at = <Date 2015-09-26.23:12:18.990>
labels = ['expert-IDLE', 'type-feature', '3.9']
title = 'Idle: refine right-click behavior'
updated_at = <Date 2019-09-20.20:46:55.438>
user = 'https://github.com/terryjreedy'

bugs.python.org fields:

activity = <Date 2019-09-20.20:46:55.438>
actor = 'terry.reedy'
assignee = 'terry.reedy'
closed = False
closed_date = None
closer = None
components = ['IDLE']
creation = <Date 2015-09-26.23:12:18.990>
creator = 'terry.reedy'
dependencies = []
files = []
hgrepos = []
issue_num = 25244
keywords = []
message_count = 1.0
messages = ['251669']
nosy_count = 2.0
nosy_names = ['terry.reedy', 'markroseman']
pr_nums = []
priority = 'normal'
resolution = None
stage = 'needs patch'
status = 'open'
superseder = None
type = 'enhancement'
url = 'https://bugs.python.org/issue25244'
versions = ['Python 3.9']

@terryjreedy
Copy link
Member Author

Spinoff from bpo-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)
else:
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.

@terryjreedy terryjreedy self-assigned this Sep 26, 2015
@terryjreedy terryjreedy added the type-feature A feature request or enhancement label Sep 26, 2015
@terryjreedy terryjreedy added the 3.9 only security fixes label Sep 20, 2019
@ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3.9 only security fixes topic-IDLE type-feature A feature request or enhancement
Projects
Status: No status
Development

No branches or pull requests

1 participant