The unicode handling chokes it out. The convert_unichar() function
is particularly rude to many of the low-valued control sequences -
ctrl-D gets mapped to kEnd, and 0x4 is lost forever :-(
My inclination is to dump most of those conversions, since they seem
to only affect the use of "special" keys, which I don't use.
Does anyone have a more elegant solution?
Paul
Looks like this mail slipped by me ...
I would try adding a check to handle_kdb_event() to see if controlKey
is pressed.
If it is, then just pass the keystroke value through without calling
convert_unichar().
I'm a bit busy right now, but if this works, I will update Acme SAC
accordingly when
I get a chance, though I would welcome any patches :-D
--underspecified
If there is no useful unicode inputs using the control key, I'll go
ahead and make you a patch.
Paul
I typically only generate unicode input using Apple's IME, so I am not
sure what unicode input there is that uses the control key.
What you said about text getting handled in handle_text_input_event()
is true with a caveat: only input events that produce fully-formed
unicode characters will a TextInputUnicode event of some kind. So just
pressing the Control key is going to generate a keyboard event with
controlKey set to 1 in the keyboard event's kEventParamKeyModifiers.
To handle Control+something events,
we probably need a variable that reflects whether the Control key is
being help down and uses that to decide whether to call
convert_unichar(). At any rate, I would like to give your solution a
try too, so please send me a patch.
--underspecified