You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
IDLE -- jump to home should not go past the PS1 and PS2 prompts #61262
bpo-18444: IDLE: Revise macOS key bindings, make new one.
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=Noneclosed_at=<Date2017-06-19.20:45:59.825>created_at=<Date2013-01-28.09:17:44.205>labels= ['expert-IDLE', 'type-feature']
title='IDLE -- jump to home should not go past the PS1 and PS2 prompts'updated_at=<Date2017-06-19.20:45:59.823>user='https://github.com/rhettinger'
On my Win 7 system, with 3.3.0, the first Home sends the cursor to the beginning of the user entry, after '>>> '. The second sends it to the beginning of the display line. And so forth, as intended. See python/cpython#48101. (It worked the same with Win xp and 3.1) If are getting different behavior, what os and py versions?
serwy commented on Apr 3, 2013
serwymannequin
Mannequin
More actions
When using the IDLE Classic OSX key set, the "beginning-of-line" virtual event gets bound to <Control-Key-Left>. Using this key set I can repeat the behavior that Raymond observed.
The .home_callback() in Lib/idlelib/EditorWindow.py contains the logic from bpo-3851 for placing the cursor at the beginning of the prompt, but it requires that a key combination be bound to the beginning-of-line virtual event.
Should we append "<Key-Home> <Control-Key-a>" to the begining-of-line config in Lib/idlelib/config-keys.def ?
Activity
rhettinger commentedon Jan 28, 2013
terryjreedy commentedon Feb 2, 2013
serwy commentedon Apr 3, 2013
When using the IDLE Classic OSX key set, the "beginning-of-line" virtual event gets bound to <Control-Key-Left>. Using this key set I can repeat the behavior that Raymond observed.
The .home_callback() in Lib/idlelib/EditorWindow.py contains the logic from bpo-3851 for placing the cursor at the beginning of the prompt, but it requires that a key combination be bound to the beginning-of-line virtual event.
Should we append "<Key-Home> <Control-Key-a>" to the begining-of-line config in Lib/idlelib/config-keys.def ?
terryjreedy commentedon Jun 19, 2017
I am closing this instead of bpo-18444 because the latter has more extensive discussion.