mirror of
https://github.com/Helium314/HeliBoard.git
synced 2025-05-14 05:52:47 +00:00
allow entering minus and nothing (same as 0)
This commit is contained in:
parent
f7c694bfe0
commit
044f6dd81c
2 changed files with 3 additions and 3 deletions
|
@ -262,14 +262,14 @@ private fun toolbarKeyCustomizer(context: Context, key: ToolbarKey) {
|
|||
layout.findViewById<EditText>(R.id.toolbar_key_code)?.apply {
|
||||
setText(getCodeForToolbarKey(key).toString())
|
||||
doAfterTextChanged {
|
||||
keyCode = it?.toString()
|
||||
keyCode = it?.toString()?.ifEmpty { "0" }
|
||||
checkOk()
|
||||
}
|
||||
}
|
||||
layout.findViewById<EditText>(R.id.toolbar_key_longpress_code)?.apply {
|
||||
setText(getCodeForToolbarKeyLongClick(key).toString())
|
||||
doAfterTextChanged {
|
||||
longpressCode = it?.toString()
|
||||
longpressCode = it?.toString()?.ifEmpty { "0" }
|
||||
checkOk()
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue