1
0
Fork 0

fixed Hiragana and Katakana being incorrectly enabled in numeric fields

This commit is contained in:
sspanak 2025-05-10 18:02:49 +03:00 committed by Dimo Karaivanov
parent d2fa8911da
commit 8a960713ab

View file

@ -319,9 +319,11 @@ public abstract class TypingHandler extends KeyPadHandler {
* Since Japanese is unique with its 3 alphabets, we need to setup the input modes separately. * Since Japanese is unique with its 3 alphabets, we need to setup the input modes separately.
*/ */
private void determineJapaneseInputModes() { private void determineJapaneseInputModes() {
if (allowedInputModes.contains(InputMode.MODE_ABC)) {
allowedInputModes.remove((Integer) InputMode.MODE_ABC);
allowedInputModes.add(InputMode.MODE_HIRAGANA); allowedInputModes.add(InputMode.MODE_HIRAGANA);
allowedInputModes.add(InputMode.MODE_KATAKANA); allowedInputModes.add(InputMode.MODE_KATAKANA);
allowedInputModes.remove((Integer) InputMode.MODE_ABC); }
if (!settings.getPredictiveMode()) { if (!settings.getPredictiveMode()) {
allowedInputModes.remove((Integer) InputMode.MODE_PREDICTIVE); allowedInputModes.remove((Integer) InputMode.MODE_PREDICTIVE);
} }