[Tutor] wx accelerator table: one keystroke seems skipped

Wayne Werner waynejwerner at gmail.com
Thu Jan 6 19:50:05 CET 2011


On Thu, Jan 6, 2011 at 11:46 AM, Octavian Rasnita <orasnita at gmail.com>wrote:

> <snip>
>
I think that not the keystroke is the problem, but the library that creates
> the GUI that handles it might have a bug.
>
> I gave you the idea that Control+M might not work because for example if
> you press that hotkey in Notepad, it is like you'd press <enter>.
>
> Or if you write "dir" in a command prompt and then press Control+M, it will
> execute that command just like after pressing <enter>
>
> But I think that a good key handler should be able to distinguish between
> <enter> and Control+M...


Unless the operating system reports Ctrl-M as a carriage return before the
GUI can capture it.

I'd venture to say it warrants some experiments.

-Wayne
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20110106/baf9df81/attachment.html>


More information about the Tutor mailing list