mirror of
https://github.com/Helium314/HeliBoard.git
synced 2025-05-14 14:02:44 +00:00
correctly set placeholder default width
This commit is contained in:
parent
d0983e6c3b
commit
3b30864b00
1 changed files with 2 additions and 2 deletions
|
@ -370,9 +370,9 @@ sealed interface KeyData : AbstractKeyData {
|
|||
|
||||
/** this expects that codes and labels are already converted from FlorisBoard values, usually through compute */
|
||||
fun toKeyParams(params: KeyboardParams, additionalLabelFlags: Int = 0): Key.KeyParams {
|
||||
if (type == KeyType.PLACEHOLDER) return Key.KeyParams.newSpacer(params, width)
|
||||
|
||||
val newWidth = if (width == 0f) getDefaultWidth(params) else width
|
||||
if (type == KeyType.PLACEHOLDER) return Key.KeyParams.newSpacer(params, newWidth)
|
||||
|
||||
val newCode: Int
|
||||
val newLabel: String
|
||||
if (code in KeyCode.Spec.CURRENCY) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue