forked from GitHub/gf-core
another fix in the keyboard
This commit is contained in:
@@ -502,16 +502,16 @@ public class TranslatorInputMethodService extends InputMethodService
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void handleCharacter(int primaryCode, int[] keyCodes) {
|
private void handleCharacter(int primaryCode, int[] keyCodes) {
|
||||||
if (isInputViewShown()) {
|
|
||||||
if (mInputView.isShifted()) {
|
|
||||||
primaryCode = Character.toUpperCase(primaryCode);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if (keyCodes.length > 0 && keyCodes[0] > 0) {
|
if (keyCodes.length > 0 && keyCodes[0] > 0) {
|
||||||
for (int i = 0; i < keyCodes.length && keyCodes[i] > 0; i++)
|
for (int i = 0; i < keyCodes.length && keyCodes[i] > 0; i++) {
|
||||||
mComposing.append((char) keyCodes[i]);
|
int code = keyCodes[i];
|
||||||
|
if (mInputView.isShifted())
|
||||||
|
code = Character.toUpperCase(code);
|
||||||
|
mComposing.append((char) code);
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
|
if (mInputView.isShifted())
|
||||||
|
primaryCode = Character.toUpperCase(primaryCode);
|
||||||
mComposing.append((char) primaryCode);
|
mComposing.append((char) primaryCode);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user