swapped the default d-pad up/down and left/right functions
This commit is contained in:
parent
c530214aaf
commit
70df1bee60
3 changed files with 14 additions and 14 deletions
|
|
@ -1,7 +1,7 @@
|
|||
# Traditional T9
|
||||
TT9 is an IME (Input Method Editor) for Android devices with a hardware keypad. It supports [multiple languages](assets/languages/definitions) and predictive text typing.
|
||||
TT9 is an IME (Input Method Editor) for Android devices with a hardware keypad. It supports predictive text typing in [multiple languages](assets/languages/definitions) and configurable hotkeys.
|
||||
|
||||
This is an updated version of the [original project](https://github.com/Clam-/TraditionalT9) by Clam-.
|
||||
This is a modernized version of the [original project](https://github.com/Clam-/TraditionalT9) by Clam-.
|
||||
|
||||
[<img src="https://gitlab.com/IzzyOnDroid/repo/-/raw/master/assets/IzzyOnDroid.png"
|
||||
alt="Get it on IzzyOnDroid"
|
||||
|
|
@ -12,7 +12,7 @@ or get the APK from the [Releases Section](https://github.com/sspanak/tt9/releas
|
|||
## System Requirements
|
||||
- Android 4.4 or higher. _(Tested and confirmed on Android 4.4.2, 10 and 11)_
|
||||
- Free space:
|
||||
- Minimum 25 Mb when not using Predictive mode and no dictionaries are loaded.
|
||||
- Minimum 30 Mb when not using Predictive mode and no dictionaries are loaded.
|
||||
- Plenty of space per each enabled language in Predictive mode (25-100 Mb, depending on the word count).
|
||||
- A hardware keypad or a keyboard. For touchscreen-only devices, an on-screen keypad can be enabled in the Settings.
|
||||
|
||||
|
|
|
|||
|
|
@ -39,13 +39,13 @@ In all cases, deleting a dictionary removes both all factory and all custom adde
|
|||
|
||||
## Hotkeys
|
||||
|
||||
#### D-pad Up (↑):
|
||||
Select previous word/letter suggestion.
|
||||
#### Previous Suggestion key (Default: D-pad Left):
|
||||
Select the previous word/letter suggestion.
|
||||
|
||||
#### D-pad Down (↓):
|
||||
Select next word/letter suggestion.
|
||||
#### Next Suggestion key (Default: D-pad Right):
|
||||
Select the next word/letter suggestion.
|
||||
|
||||
#### D-pad Right (→):
|
||||
#### Filter Suggestions key (Default: D-pad Up):
|
||||
_Predictive mode only._
|
||||
|
||||
- **Single press**: Filter the suggestion list, leaving out only the ones that start with the current word. It doesn't matter if it is a complete word or not. For example, type "remin" and press Right. It will leave out all words starting with "remin": "remin" itself, "remind", "reminds", "reminded", "reminding", and so on.
|
||||
|
|
@ -55,7 +55,7 @@ Filtering can also be used to type unknown words. Let's say you want to type "An
|
|||
|
||||
When filtering is enabled, the base text will become bold and italicized.
|
||||
|
||||
#### D-pad Left (←):
|
||||
#### Clear Filter key (Default: D-pad Down):
|
||||
_Predictive mode only._
|
||||
|
||||
- Clear the suggestion filter, if applied.
|
||||
|
|
|
|||
|
|
@ -61,18 +61,18 @@ public class Hotkeys {
|
|||
backspace = 0;
|
||||
}
|
||||
|
||||
int clearFilter = KeyCharacterMap.deviceHasKey(KeyEvent.KEYCODE_DPAD_LEFT) && !settings.getShowSoftNumpad() ? KeyEvent.KEYCODE_DPAD_LEFT : 0;
|
||||
int filter = KeyCharacterMap.deviceHasKey(KeyEvent.KEYCODE_DPAD_RIGHT) && !settings.getShowSoftNumpad() ? KeyEvent.KEYCODE_DPAD_RIGHT : 0;
|
||||
int nextSuggestion = KeyCharacterMap.deviceHasKey(KeyEvent.KEYCODE_DPAD_UP) && !settings.getShowSoftNumpad() ? KeyEvent.KEYCODE_DPAD_UP : 0;
|
||||
int previousSuggestion = KeyCharacterMap.deviceHasKey(KeyEvent.KEYCODE_DPAD_DOWN) && !settings.getShowSoftNumpad() ? KeyEvent.KEYCODE_DPAD_DOWN : 0;
|
||||
int clearFilter = KeyCharacterMap.deviceHasKey(KeyEvent.KEYCODE_DPAD_DOWN) && !settings.getShowSoftNumpad() ? KeyEvent.KEYCODE_DPAD_DOWN : 0;
|
||||
int filter = KeyCharacterMap.deviceHasKey(KeyEvent.KEYCODE_DPAD_UP) && !settings.getShowSoftNumpad() ? KeyEvent.KEYCODE_DPAD_UP : 0;
|
||||
int nextSuggestion = KeyCharacterMap.deviceHasKey(KeyEvent.KEYCODE_DPAD_RIGHT) && !settings.getShowSoftNumpad() ? KeyEvent.KEYCODE_DPAD_RIGHT : 0;
|
||||
int previousSuggestion = KeyCharacterMap.deviceHasKey(KeyEvent.KEYCODE_DPAD_LEFT) && !settings.getShowSoftNumpad() ? KeyEvent.KEYCODE_DPAD_LEFT : 0;
|
||||
|
||||
settings.setDefaultKeys(
|
||||
KeyEvent.KEYCODE_STAR,
|
||||
backspace,
|
||||
clearFilter,
|
||||
filter,
|
||||
nextSuggestion,
|
||||
previousSuggestion,
|
||||
nextSuggestion,
|
||||
KeyEvent.KEYCODE_POUND,
|
||||
-KeyEvent.KEYCODE_POUND, // negative means "hold"
|
||||
-KeyEvent.KEYCODE_STAR
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue