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 eryksun
Recipients eryksun, jedwards, paul.moore, principia1687, steve.dower, tim.golden, zach.ware
Date 2015-04-25.12:21:19
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1429964479.76.0.764846274643.issue24035@psf.upfronthosting.co.za>
In-reply-to
Content
> It looks like this is a bug in pyreadlines as suggested by 
> eryksun, but for a different reason.

As I said before, it reads keyboard input events at a lower level via ReadConsoleInputW, instead of calling ReadConsoleW to read the input buffer as a text stream. To elaborate, this means it has to be aware of the keyboard state, per the [KEY_EVENT_RECORD][1] dwControlKeyState. This gets passed to [make_KeyPress][2] as `state`, which in turn ignores the CAPSLOCK_ON flag.

[1]: https://msdn.microsoft.com/en-us/library/ms684166
[2]: https://github.com/pyreadline/pyreadline/blob/master/pyreadline/keysyms/keysyms.py#L116
History
Date User Action Args
2015-04-25 12:21:19eryksunsetrecipients: + eryksun, paul.moore, tim.golden, zach.ware, steve.dower, jedwards, principia1687
2015-04-25 12:21:19eryksunsetmessageid: <1429964479.76.0.764846274643.issue24035@psf.upfronthosting.co.za>
2015-04-25 12:21:19eryksunlinkissue24035 messages
2015-04-25 12:21:19eryksuncreate