@@ -18,18 +18,6 @@ class NumberKeyboard(
18
18
theme : Theme ,
19
19
) : BaseKeyboard(context, theme, Layout ) {
20
20
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
-
33
21
companion object {
34
22
const val Name = " Number"
35
23
@@ -57,10 +45,10 @@ class NumberKeyboard(
57
45
),
58
46
listOf (
59
47
LayoutSwitchKey (" ABC" , TextKeyboard .Name ),
60
- PunctuationKey (" ," , 0.1f , KeyDef .Appearance .Variant .Alternative ),
48
+ NumPadKey (" ," , 0xffac , 23f , 0.1f , KeyDef .Appearance .Variant .Alternative ),
61
49
LayoutSwitchKey (" !?#" , PickerWindow .Key .Symbol .name, 0.13333f , KeyDef .Appearance .Variant .AltForeground ),
62
50
NumPadKey (" 0" , 0xffb0 , 30f , 0.23334f ),
63
- PunctuationKey (" =" , 0.13333f , KeyDef .Appearance .Variant .AltForeground ),
51
+ NumPadKey (" =" , 0xffbd , 23f , 0.13333f , KeyDef .Appearance .Variant .AltForeground ),
64
52
NumPadKey (" ." , 0xffae , 23f , 0.1f , KeyDef .Appearance .Variant .Alternative ),
65
53
ReturnKey ()
66
54
)
0 commit comments