diff options
| -rw-r--r-- | ime/app/src/main/java/com/anysoftkeyboard/keyboards/AnyKeyboard.java | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/ime/app/src/main/java/com/anysoftkeyboard/keyboards/AnyKeyboard.java b/ime/app/src/main/java/com/anysoftkeyboard/keyboards/AnyKeyboard.java index 374904e38..e59df80f5 100644 --- a/ime/app/src/main/java/com/anysoftkeyboard/keyboards/AnyKeyboard.java +++ b/ime/app/src/main/java/com/anysoftkeyboard/keyboards/AnyKeyboard.java @@ -837,12 +837,13 @@ public abstract class AnyKeyboard extends Keyboard { } if (!mShiftCodesAlwaysOverride) { - // if the shift-character is a symbol, we only show it if the SHIFT is pressed, - // not if the shift is active. - mShiftCodesAlways = mShiftedCodes.length == 0 - || Character.isLetter(mShiftedCodes[0]) - || Character.getType(mShiftedCodes[0]) == Character.NON_SPACING_MARK - || Character.getType(mShiftedCodes[0]) == Character.COMBINING_SPACING_MARK; + // if the shift-character is a symbol, we only show it if the SHIFT is pressed, + // not if the shift is active. + mShiftCodesAlways = + mShiftedCodes.length == 0 + || Character.isLetter(mShiftedCodes[0]) + || Character.getType(mShiftedCodes[0]) == Character.NON_SPACING_MARK + || Character.getType(mShiftedCodes[0]) == Character.COMBINING_SPACING_MARK; } if (popupCharacters != null && popupCharacters.length() == 0) { |
