Skip to content

Commit ab4cc96

Browse files
committed
Use KP_Separator/KP_Equal for comma/dot in NumberKeyboard
1 parent a8661f8 commit ab4cc96

File tree

1 file changed

+2
-14
lines changed

1 file changed

+2
-14
lines changed

app/src/main/java/org/fcitx/fcitx5/android/input/keyboard/NumberKeyboard.kt

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -18,18 +18,6 @@ class NumberKeyboard(
1818
theme: Theme,
1919
) : BaseKeyboard(context, theme, Layout) {
2020

21-
class PunctuationKey(p: String, percentWidth: Float, variant: Appearance.Variant) : KeyDef(
22-
Appearance.Text(
23-
displayText = p,
24-
textSize = 23f,
25-
percentWidth = percentWidth,
26-
variant = variant
27-
),
28-
setOf(
29-
Behavior.Press(KeyAction.CommitAction(p))
30-
)
31-
)
32-
3321
companion object {
3422
const val Name = "Number"
3523

@@ -57,10 +45,10 @@ class NumberKeyboard(
5745
),
5846
listOf(
5947
LayoutSwitchKey("ABC", TextKeyboard.Name),
60-
PunctuationKey(",", 0.1f, KeyDef.Appearance.Variant.Alternative),
48+
NumPadKey(",", 0xffac, 23f, 0.1f, KeyDef.Appearance.Variant.Alternative),
6149
LayoutSwitchKey("!?#", PickerWindow.Key.Symbol.name, 0.13333f, KeyDef.Appearance.Variant.AltForeground),
6250
NumPadKey("0", 0xffb0, 30f, 0.23334f),
63-
PunctuationKey("=", 0.13333f, KeyDef.Appearance.Variant.AltForeground),
51+
NumPadKey("=", 0xffbd, 23f, 0.13333f, KeyDef.Appearance.Variant.AltForeground),
6452
NumPadKey(".", 0xffae, 23f, 0.1f, KeyDef.Appearance.Variant.Alternative),
6553
ReturnKey()
6654
)

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy