diff --git a/app/src/main/java/org/pocketworkstation/pckeyboard/Keyboard.java b/app/src/main/java/org/pocketworkstation/pckeyboard/Keyboard.java index b4e59ecd9..e07298c05 100644 --- a/app/src/main/java/org/pocketworkstation/pckeyboard/Keyboard.java +++ b/app/src/main/java/org/pocketworkstation/pckeyboard/Keyboard.java @@ -638,7 +638,7 @@ public String getHintLabel(boolean wantAscii, boolean wantAll) { hint = ""; if (shiftLabel != null && !isSimpleUppercase) { char c = shiftLabel.charAt(0); - if (wantAll || wantAscii && is7BitAscii(c)) { + if (wantAll || wantAscii && isNotAlpha(c)) { hint = Character.toString(c); } } @@ -664,6 +664,11 @@ private static boolean is7BitAscii(char c) { if ((c >= 'A' && c <= 'Z') || (c >= 'a' && c <= 'z')) return false; return c >= 32 && c < 127; } + + private static boolean isNotAlpha(char c) { + if ((c >= 'A' && c <= 'Z') || (c >= 'a' && c <= 'z')) return false; + return true; + } /** * Informs the key that it has been pressed, in case it needs to change its appearance or