Opened 8 years ago

Closed 7 years ago

Last modified 5 years ago

#3 closed defect (worksforme)

Dead keys get inserted and break typing of accented characters

Reported by: jteh Owned by:
Priority: major Milestone: 2009.1
Component: Core Version: 0.5
Keywords: Cc:
Operating system: Blocked by:
Blocking:
Changes document entry (for developers):

Description

In several non-English keyboard layouts, accented characters are entered by first pressing a special accent key (a dead key), followed by pressing the character to be accented. The dead key normally produces no output. Output only occurs once the second character has been pressed and should only be a single character. pyHook breaks this behaviour. With pyHook hooking the keyboard, dead keys produce output immediately when typed and do not have any effect on the second character, thus breaking typing of these accented characters completely.

This seems to be an issue with the ToAsciiEx function which is used by pyHook. It seems that ToAsciiEx flushes the keyboard buffer when a dead key is typed. More info can be found at http://www.experts-exchange.com/Programming/Languages/CPP/Q_21484783.html?qid=21484783

pyHook needs to be fixed. We should be using ToUnicodeEx anyway, as many international characters can't be represented in ASCII, and should investigate whether it also exhibits this problem.

Change History (2)

comment:1 Changed 7 years ago by pvagner

  • Resolution set to worksforme
  • Status changed from new to closed

This no longer seems to be a problem in trunk. Should this ticked be closed then?

comment:2 Changed 7 years ago by aleksey_s

  • Milestone set to 0.6
  • Version set to 0.5
Note: See TracTickets for help on using tickets.