Skip to content

Commit

Permalink
Dont hide numbers. Fixes #501 (#584)
Browse files Browse the repository at this point in the history
  • Loading branch information
dessalines authored Dec 1, 2023
1 parent c387001 commit 400625c
Showing 1 changed file with 9 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -668,15 +668,20 @@ fun KeyText(
is KeyDisplay.TextDisplay -> {
// Only hide the letters for text, not symbols
val containsLetters = display.text.any { it.isLetter() }
val containsNumbers = display.text.any { it.isDigit() }

// If its a letter key, use the hide letter setting
val showKey =
val hideKey =
if (containsLetters) {
!hideLetters
hideLetters
} else {
!hideSymbols
if (containsNumbers) {
false
} else {
hideSymbols
}
}
if (showKey) {
if (!hideKey) {
Text(
text = display.text,
fontWeight = FontWeight.Bold,
Expand Down

0 comments on commit 400625c

Please sign in to comment.