auto-repeated 'text' events are generated for some keys and not others

Issue #12 wontfix
Jeremy Hill created an issue

Only a few keys generate auto-repeated 'text' events when held down, and the rest do not. Of the alphanumeric keys, the only ones that repeat are:

`['a', 'c', 'e', 'i', 'l', 'n', 'o', 's', 'u', 'y', 'z']`

But they do all seem to generate 'key_auto' events in the accelerator. (Unfortunately pyglet and pygame do not seem to have an equivalent of 'key_auto' events at all, which was probably the motivation for looking at repeated 'text' events in the first place. But that strategy had a couple of other flaws anyway: the fact that some keys, like the arrow and return keys, do not generate 'text' events; and the fact that pygame does not auto-repeat 'text' events at all.)

This may be OS- or keyboard- specific on my (late 2013 13" Retina) MacBook, because it is seemingly common to both the pyglet back-end and the accelerator. It was observed in both Python 2 and 3.

Comments (2)

  1. Jeremy Hill reporter

    key_auto events have now been enabled, and are superior to repeated text events for most purposes.

  2. Log in to comment