Skip to content

Commit

Permalink
Fix double dotted circle for combining diacritical marks (#1089)
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickgold committed Jul 23, 2021
1 parent 11325e9 commit ee0677b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ class TextKeyData(
if (isForDisplay || code == KeyCode.URI_COMPONENT_TLD || code < KeyCode.SPACE) {
// Combining Diacritical Marks
// See: https://en.wikipedia.org/wiki/Combining_Diacritical_Marks
if (code in 0x0300..0x036F) {
if (code in 0x0300..0x036F && !label.startsWith("")) {
append("")
}
append(label)
Expand Down Expand Up @@ -305,7 +305,7 @@ class AutoTextKeyData(
if (isForDisplay || code == KeyCode.URI_COMPONENT_TLD || code < KeyCode.SPACE) {
// Combining Diacritical Marks
// See: https://en.wikipedia.org/wiki/Combining_Diacritical_Marks
if (code in 0x0300..0x036F) {
if (code in 0x0300..0x036F && !label.startsWith("")) {
append("")
}
append(label)
Expand Down

0 comments on commit ee0677b

Please sign in to comment.