mirror of
https://github.com/Helium314/HeliBoard.git
synced 2025-05-14 22:12:46 +00:00
don't show toolbar key names as popup hint labels
This commit is contained in:
parent
3306ffb849
commit
6f71e577d3
1 changed files with 3 additions and 0 deletions
|
@ -4,6 +4,7 @@ package helium314.keyboard.latin.utils
|
||||||
import android.content.SharedPreferences
|
import android.content.SharedPreferences
|
||||||
import helium314.keyboard.keyboard.Key
|
import helium314.keyboard.keyboard.Key
|
||||||
import helium314.keyboard.keyboard.internal.KeySpecParser
|
import helium314.keyboard.keyboard.internal.KeySpecParser
|
||||||
|
import helium314.keyboard.keyboard.internal.KeyboardIconsSet
|
||||||
import helium314.keyboard.keyboard.internal.KeyboardParams
|
import helium314.keyboard.keyboard.internal.KeyboardParams
|
||||||
import helium314.keyboard.keyboard.internal.keyboard_parser.floris.KeyLabel.rtlLabel
|
import helium314.keyboard.keyboard.internal.keyboard_parser.floris.KeyLabel.rtlLabel
|
||||||
import helium314.keyboard.keyboard.internal.keyboard_parser.floris.PopupSet
|
import helium314.keyboard.keyboard.internal.keyboard_parser.floris.PopupSet
|
||||||
|
@ -68,6 +69,8 @@ fun getHintLabel(popupSet: PopupSet<*>?, params: KeyboardParams, label: String):
|
||||||
}
|
}
|
||||||
if (hintLabel != null) break
|
if (hintLabel != null) break
|
||||||
}
|
}
|
||||||
|
if (hintLabel in toolbarKeyStrings.values)
|
||||||
|
hintLabel = null // better show nothing instead of the toolbar key label
|
||||||
|
|
||||||
return hintLabel?.let { KeySpecParser.getLabel(transformLabel(it, params)) }
|
return hintLabel?.let { KeySpecParser.getLabel(transformLabel(it, params)) }
|
||||||
// avoid e.g. !autoColumnOrder! as label
|
// avoid e.g. !autoColumnOrder! as label
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue