mirror of
https://github.com/SimpleMobileTools/Simple-Keyboard.git
synced 2025-06-05 21:49:26 +02:00
adding some more styling
This commit is contained in:
@ -247,6 +247,9 @@ class MyKeyboard {
|
||||
/** The current pressed state of this key */
|
||||
var pressed = false
|
||||
|
||||
/** Focused state, used after long pressing a key and swiping to alternative keys */
|
||||
var focused = false
|
||||
|
||||
/** Text to output when pressed. This can be multiple characters, like ".com" */
|
||||
var text: CharSequence? = null
|
||||
|
||||
@ -331,6 +334,14 @@ class MyKeyboard {
|
||||
edgeFlags = parent.rowEdgeFlags
|
||||
}
|
||||
|
||||
fun onPressed() {
|
||||
pressed = true
|
||||
}
|
||||
|
||||
fun onReleased() {
|
||||
pressed = false
|
||||
}
|
||||
|
||||
fun parseCSV(value: String): ArrayList<Int> {
|
||||
var count = 0
|
||||
var lastIndex = 0
|
||||
|
Reference in New Issue
Block a user