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 cheryl.sabella, louielu, serhiy.storchaka, terry.reedy
Date 2017-11-02.22:09:41
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1509660581.35.0.213398074469.issue31930@psf.upfronthosting.co.za>
In-reply-to
Content
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?
History
Date User Action Args
2017-11-02 22:09:41terry.reedysetrecipients: + terry.reedy, serhiy.storchaka, louielu, cheryl.sabella
2017-11-02 22:09:41terry.reedysetmessageid: <1509660581.35.0.213398074469.issue31930@psf.upfronthosting.co.za>
2017-11-02 22:09:41terry.reedylinkissue31930 messages
2017-11-02 22:09:41terry.reedycreate