Skip to content

Commit 674c51b

Browse files
committed
Hint: always show except lettres (a-z/A-Z)
Some locales have shifted chars likel ç ° ä ö ü which are helpful to be visible Signed-off-by: Jean-Pierre Rasquin <[email protected]>
1 parent a3e6702 commit 674c51b

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

app/src/main/java/org/pocketworkstation/pckeyboard/Keyboard.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -638,7 +638,7 @@ public String getHintLabel(boolean wantAscii, boolean wantAll) {
638638
hint = "";
639639
if (shiftLabel != null && !isSimpleUppercase) {
640640
char c = shiftLabel.charAt(0);
641-
if (wantAll || wantAscii && is7BitAscii(c)) {
641+
if (wantAll || wantAscii && isNotAlpha(c)) {
642642
hint = Character.toString(c);
643643
}
644644
}
@@ -664,6 +664,11 @@ private static boolean is7BitAscii(char c) {
664664
if ((c >= 'A' && c <= 'Z') || (c >= 'a' && c <= 'z')) return false;
665665
return c >= 32 && c < 127;
666666
}
667+
668+
private static boolean isNotAlpha(char c) {
669+
if ((c >= 'A' && c <= 'Z') || (c >= 'a' && c <= 'z')) return false;
670+
return true;
671+
}
667672

668673
/**
669674
* Informs the key that it has been pressed, in case it needs to change its appearance or

0 commit comments

Comments
 (0)