mirror of
https://gitlab.futo.org/keyboard/latinime.git
synced 2024-09-28 14:54:30 +01:00
Skip keyspec shortcut if unresolvable
This commit is contained in:
parent
7a01d1e6e6
commit
69a74799e3
@ -402,7 +402,7 @@ data class BaseKey(
|
|||||||
val expandedSpec: String? = params.mTextsSet.resolveTextReference(
|
val expandedSpec: String? = params.mTextsSet.resolveTextReference(
|
||||||
if(attributes.useKeySpecShortcut != false) { relevantSpecShortcut?.get(0) } else { null }
|
if(attributes.useKeySpecShortcut != false) { relevantSpecShortcut?.get(0) } else { null }
|
||||||
?: spec
|
?: spec
|
||||||
)
|
) ?: params.mTextsSet.resolveTextReference(spec)
|
||||||
|
|
||||||
val label = expandedSpec?.let { KeySpecParser.getLabel(it) } ?: ""
|
val label = expandedSpec?.let { KeySpecParser.getLabel(it) } ?: ""
|
||||||
val icon = expandedSpec?.let { KeySpecParser.getIconId(it) } ?: ""
|
val icon = expandedSpec?.let { KeySpecParser.getIconId(it) } ?: ""
|
||||||
|
Loading…
Reference in New Issue
Block a user