Merge "Fix upper case Eszett more key"
This commit is contained in:
commit
133bb8544a
1 changed files with 11 additions and 3 deletions
|
@ -68,12 +68,20 @@ public class KeySpecParser {
|
||||||
|
|
||||||
public MoreKeySpec(final String moreKeySpec, boolean needsToUpperCase, Locale locale,
|
public MoreKeySpec(final String moreKeySpec, boolean needsToUpperCase, Locale locale,
|
||||||
final KeyboardCodesSet codesSet) {
|
final KeyboardCodesSet codesSet) {
|
||||||
mCode = toUpperCaseOfCodeForLocale(getCode(moreKeySpec, codesSet),
|
|
||||||
needsToUpperCase, locale);
|
|
||||||
mLabel = toUpperCaseOfStringForLocale(getLabel(moreKeySpec),
|
mLabel = toUpperCaseOfStringForLocale(getLabel(moreKeySpec),
|
||||||
needsToUpperCase, locale);
|
needsToUpperCase, locale);
|
||||||
|
final int code = toUpperCaseOfCodeForLocale(getCode(moreKeySpec, codesSet),
|
||||||
|
needsToUpperCase, locale);
|
||||||
|
if (code == Keyboard.CODE_UNSPECIFIED) {
|
||||||
|
// Some letter, for example German Eszett (U+00DF: "ß"), has multiple characters
|
||||||
|
// upper case representation ("SS").
|
||||||
|
mCode = Keyboard.CODE_OUTPUT_TEXT;
|
||||||
|
mOutputText = mLabel;
|
||||||
|
} else {
|
||||||
|
mCode = code;
|
||||||
mOutputText = toUpperCaseOfStringForLocale(getOutputText(moreKeySpec),
|
mOutputText = toUpperCaseOfStringForLocale(getOutputText(moreKeySpec),
|
||||||
needsToUpperCase, locale);
|
needsToUpperCase, locale);
|
||||||
|
}
|
||||||
mIconId = getIconId(moreKeySpec);
|
mIconId = getIconId(moreKeySpec);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue