don't show tld hint label in numpad

see #1640
This commit is contained in:
Helium314 2025-05-30 20:19:26 +02:00
parent 31a8761bfa
commit dbeddcd658

View file

@ -542,7 +542,9 @@ sealed interface KeyData : AbstractKeyData {
// essentially the first term only changes the appearance of the armenian period key in holo theme
KeyLabel.PERIOD -> (Key.LABEL_FLAGS_HAS_POPUP_HINT and
if (params.mId.isAlphabetKeyboard) params.mLocaleKeyboardInfos.labelFlags else 0) or
Key.LABEL_FLAGS_PRESERVE_CASE
Key.LABEL_FLAGS_PRESERVE_CASE or
// in functional_keys.json the label flag is already defined, let's not override it in case it's removed by the user
if (!params.mId.isAlphaOrSymbolKeyboard && shouldShowTldPopups(params)) Key.LABEL_FLAGS_DISABLE_HINT_LABEL else 0
KeyLabel.ACTION -> {
Key.LABEL_FLAGS_PRESERVE_CASE or Key.LABEL_FLAGS_AUTO_X_SCALE or Key.LABEL_FLAGS_FOLLOW_KEY_LABEL_RATIO or
Key.LABEL_FLAGS_HAS_POPUP_HINT or KeyboardTheme.getThemeActionAndEmojiKeyLabelFlags(params.mThemeId)