On 3/10/07, Etsushi Kato <[EMAIL PROTECTED]> wrote:
On 3/10/07, Etsushi Kato <[EMAIL PROTECTED]> wrote:
> > Your patch works here with Czech keyboard layout.
> >
> > Minor nit: when you press Ctrl+A to mark all text, it crashes:
>
> OK.  The code using UCKeyTranslate is taken from Apple's Tech Q&A
> QA1446 (http://developer.apple.com/qa/qa2005/qa1446.html) and works on
> my machine, but maybe it is needed to check uchrHandle before calling
> UCKeyTranslate().

Even it woks with US layout, I just reproduced the crash with
Czech-QWERTY layout.  I'll try to investigate the cause later.

I found the reason in carbon-dev archive
(http://lists.apple.com/archives/carbon-dev/2005/May/msg00904.html).
It seems Apple sample code is outdated...

Anyway, here is the revised patch.  It uses
KLGetKeyboardLayoutProperty to get uchr date.  And also fixes
"Control-a" to select all not working even in US layout.

Cheers,
--
Etsushi Kato
[EMAIL PROTECTED]

Attachment: vcl-aqua-salframe-tsm-revised.diff.gz
Description: GNU Zip compressed data

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to