We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c387001 commit 400625cCopy full SHA for 400625c
1 file changed
app/src/main/java/com/dessalines/thumbkey/ui/components/keyboard/KeyboardKey.kt
@@ -668,15 +668,20 @@ fun KeyText(
668
is KeyDisplay.TextDisplay -> {
669
// Only hide the letters for text, not symbols
670
val containsLetters = display.text.any { it.isLetter() }
671
+ val containsNumbers = display.text.any { it.isDigit() }
672
673
// If its a letter key, use the hide letter setting
- val showKey =
674
+ val hideKey =
675
if (containsLetters) {
- !hideLetters
676
+ hideLetters
677
} else {
- !hideSymbols
678
+ if (containsNumbers) {
679
+ false
680
+ } else {
681
+ hideSymbols
682
+ }
683
}
- if (showKey) {
684
+ if (!hideKey) {
685
Text(
686
text = display.text,
687
fontWeight = FontWeight.Bold,
0 commit comments