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...
No. I think:
+ PRBool needLatinKeyCodes = !isLatin; odes) { altCharCodes. mUnshiftedCharC ode); altCharCodes. mShiftedCharCod e);
+ if (!needLatinKeyC
+ PRBool isAlpha1 = NS_IS_ALPHA(
+ PRBool isAlpha2 = NS_IS_ALPHA(
+ needLatinKeyCodes = (isAlpha1 && !isAlpha2) || (!isAlpha1 && isAlpha2);
+ }
- if (isLatin) {
+ if (needLatinKeyCodes) {
I believe this is safest way for other key layouts...