1
0
Fork 0

Fix #29 (wrong route taken in handler when keymap is off) (#30)

* (nitpicking) Add "space on 0" proper description

* Fix https://github.com/Clam-/TraditionalT9/issues/29

Co-authored-by: akasaka <akasaka@somewhereinthe.box>
This commit is contained in:
Akasaka Ryuunosuke 2021-02-22 19:33:23 +09:00 committed by GitHub
parent 6e9cc238e7
commit a352deca43
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 4 deletions

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<resources xmlns:tools="http://schemas.android.com/tools">
<string translatable="false" name="help_url">https://github.com/Clam-/TraditionalT9/wiki/Traditional-T9-keypad-IME-for-Android</string>
<string name="app_name">Traditional T9</string>
<string name="ime_name">Traditional T9</string>
@ -76,6 +76,7 @@
<string name="pref_keyRemap" translatable="false">Translate keys</string>
<string name="pref_keyRemapSum" translatable="false">Enable to send translated keys to apps, otherwise keymap is for IME only.</string>
<string name="pref_spaceOnZero" translatable="false">Space on 0 key</string>
<string name="pref_spaceOnZeroSum" tools:ignore="MissingTranslation">Map space to 0 key if checked, otherwise to # key.</string>
<string name="hello_world">Hello world!</string>

View file

@ -18,7 +18,7 @@
<SettingCheck
id="pref_spaceOnZero"
title="@string/pref_spaceOnZero"
summary="@string/pref_keyRemapSum"
summary="@string/pref_spaceOnZeroSum"
defaultValue="false"
/>
<SettingCheck

View file

@ -604,7 +604,7 @@ public class TraditionalT9 extends InputMethodService implements
}
if (!onKeyDown_(keyCode, event)) {
if (key == null || keyRemap) {
if (key == null || !keyRemap) {
return false;
}
else {
@ -795,7 +795,7 @@ public class TraditionalT9 extends InputMethodService implements
}
if (!onKeyUp_(keyCode, event)) {
if (key == null || keyRemap) {
if (key == null || !keyRemap) {
return false;
}
else {