Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Text input events are reported inconstantly on key repeat #1345

Closed
SDLBugzilla opened this issue Feb 10, 2021 · 0 comments
Closed

Text input events are reported inconstantly on key repeat #1345

SDLBugzilla opened this issue Feb 10, 2021 · 0 comments

Comments

@SDLBugzilla
Copy link
Collaborator

SDLBugzilla commented Feb 10, 2021

This bug report was migrated from our old Bugzilla tracker.

These attachments are available in the static archive:

Reported in version: 2.0.1
Reported for operating system, platform: Mac OS X 10.8, x86

Comments on the original bug report:

On 2014-02-06 23:18:01 +0000, Daniel Bünzli wrote:

Created attachment 1550
Minimal test case showing the bug.

If I hold a key for a long time on my keyboard I always expect the attached program to have interleaving "Down" and "Text" output. It sometimes work and sometimes it doesn't. The "Text" output (i.e. the TEXT_INPUT events) get lost.

E.g. here a sample problematic output first I made a key repeat with key a that worked. Then a key repeat with key f but this one loses subsequent Text events:

./minc
Down A
Text a
Down A
Text a
Down A
Text a
Down A
Text a
Down A
Text a
Down A
Text a
Down F
Text f
Down F
Down F
Down F
Down F
Down F
Down F
Down F
Down F
Down F

On 2014-02-09 10:49:36 +0000, Sam Lantinga wrote:

Hey Jorgen, any ideas?

On 2014-02-10 22:22:29 +0000, (disabled) Jørgen Tjernø wrote:

Off the top of my head, maybe this is triggering the long-press IME composer that was introduced in 10.7 or 10.8. I'll take a look later.

On 2014-02-25 00:32:20 +0000, (disabled) Jørgen Tjernø wrote:

Definitely seems related to IME - the multiple "text" events seem to only happens on keys that have the "long press" IME popup in other applications.

On 2014-02-25 00:49:35 +0000, (disabled) Jørgen Tjernø wrote:

https://hg.libsdl.org/SDL/rev/e671ec6b22dd

On 2014-02-25 16:35:39 +0000, Daniel Bünzli wrote:

The fix works. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant