1
0
Fork 0

full hardware key support

This commit is contained in:
sspanak 2025-02-28 10:54:42 +02:00 committed by Dimo Karaivanov
parent ddabff76a4
commit 3626ac24ea
20 changed files with 542 additions and 494 deletions

View file

@ -142,15 +142,6 @@ To translate Traditional T9 menus and messages in your language, add: `res/value
Alternatively, if you don't have Android Studio, you could just use `res/values/strings.xml` as a reference and translate all strings in your file, skipping the ones that have the `translatable="false"` attribute.
## Adding Support for New Hardware Keys (Hotkeys)
TT9 allows assigning hotkeys for performing different functions. If your phone has a special key that does not appear on the Hotkey configuration screen, you can easily add support for it.
- In `preferences/helpers/Hotkeys.java`, find the `generateList()` function.
- Add the new key there. The order of adding is used when displaying the dropdown options.
- Optionally, you can translate the name of the key in different languages in the `res/values-XX/strings.xml` files.
_You can find the key codes [in the Android docs](https://developer.android.com/reference/android/view/KeyEvent)._
## Contribution Process
### Before you start