Comment 34 for bug 239222

Revision history for this message
In , Masayuki (masayuki) wrote :

No. I think:

+ PRBool needLatinKeyCodes = !isLatin;
+ if (!needLatinKeyCodes) {
+ PRBool isAlpha1 = NS_IS_ALPHA(altCharCodes.mUnshiftedCharCode);
+ PRBool isAlpha2 = NS_IS_ALPHA(altCharCodes.mShiftedCharCode);
+ needLatinKeyCodes = (isAlpha1 && !isAlpha2) || (!isAlpha1 && isAlpha2);
+ }

- if (isLatin) {
+ if (needLatinKeyCodes) {

I believe this is safest way for other key layouts...