[issue31930] IDLE: Pressing "Home" on Windows places cursor before ">>>"

2021-06-10 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

IDLE Classic Windows currently works correctly.  A custom keyset with 
<> badly rebound does not.  So maybe I was using the latter 
when I open this.  Anyway, this is moot in 3.10 with prompt removed, and I 
intend to backpart the change.

--
resolution:  -> not a bug
stage: test needed -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue31930] IDLE: Pressing "Home" on Windows places cursor before ">>>"

2019-09-19 Thread Terry J. Reedy


Change by Terry J. Reedy :


--
versions: +Python 3.9 -Python 2.7, Python 3.6, Python 3.7

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue31930] IDLE: Pressing "Home" on Windows places cursor before ">>>"

2018-02-05 Thread Terry J. Reedy

Terry J. Reedy  added the comment:

On #32761, Raymond reports that is ^A ('Home' for him) is bound to 
<>, he sees the same behavior.  So this is not Windows only.

Any change to EditorWindow.home_callback must be tested on all 3 major systems 
before merging.

I hope to fix this and other Shell issues by separating prompt and code entry, 
in a proposal-in-progress, but home_callback would still need editing.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue31930] IDLE: Pressing "Home" on Windows places cursor before ">>>"

2018-01-23 Thread Terry J. Reedy

Terry J. Reedy  added the comment:

#17060 and #18444 are similar issues for Mac.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue31930] IDLE: Pressing "Home" on Windows places cursor before ">>>"

2017-11-03 Thread Cheryl Sabella

Cheryl Sabella  added the comment:

On Ubuntu, HOME initially goes to between the text and >>>.  Pressing it again 
moves it before the >>> and then it toggles between the two.  So, it appears to 
be working as expected.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue31930] IDLE: Pressing "Home" on Windows places cursor before ">>>"

2017-11-02 Thread Terry J. Reedy

New submission from Terry J. Reedy :

If one enters text in Shell after a '>>> ' prompt, Home should initially send 
the cursor between the prompt and entered text and then to the beginning of the 
line, and so on as a toggle.  On all current releases (and the final 3.5.4), on 
my Win10 machine, the cursor goes to the beginning of the line and stays there.

This is nearly the same as #3851, which patched EditorWindow.home_callback on 
2011-3-21 and -25.  The problem then only affected Windows, because it involved 
event.state for keypresses, which is set differently on Windows and *nix.

This issue is slightly different in that the Numlock key no longer matters. 
(See KBK's  2009-04-04 02:51 message.)  Cherl or Louie, is this one also 
Windows-only or does it occur on Linux?
  
According to hg annotate, the only subsequent patch to .home_callback before 
the git switch was 2012-12-24 for #16511.  It changed the part of the function 
that adjusted selection, after moving the cursor, if Shift-Home was pressed.  
When the cursor moves to the beginning of the line, the selection includes the 
prompt.  3.5 has not been patched since the switch to git, so the problem must 
predate the switch.

2.7 on Windows runs with tk 8.5.15, so a later tk change cannot be the problem. 
 So I suspect that the 'culprit' is either an earlier 'fix' to tk or a patch to 
tkinter since 2011, combined with the absence of a test in IDLE for correct 
behavior.  Serhiy, do you have any ideas?

--
assignee: terry.reedy
components: IDLE
messages: 305452
nosy: csabella, louielu, serhiy.storchaka, terry.reedy
priority: normal
severity: normal
stage: test needed
status: open
title: IDLE: Pressing "Home" on Windows places cursor before ">>>"
type: behavior
versions: Python 2.7, Python 3.6, Python 3.7

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com