diff options
| author | Jules Aguillon | 2022-01-30 12:17:31 +0100 |
|---|---|---|
| committer | Jules Aguillon | 2022-01-30 12:17:31 +0100 |
| commit | 2f47d2400bc1272e003ecd718cf35ddba0d7fb01 (patch) | |
| tree | bb24ed48bee40faae54fccedbe60cdf1a19e4da8 /srcs/juloo.keyboard2/Keyboard2View.java | |
| parent | 348c278eaef84228fe1d44709187a4216e5f6c90 (diff) | |
| download | unexpected-keyboard-2f47d2400bc1272e003ecd718cf35ddba0d7fb01.tar.gz unexpected-keyboard-2f47d2400bc1272e003ecd718cf35ddba0d7fb01.zip | |
Improve Action key detection
There were two problems:
- The Action key was swapped when it shouldn't be. The flag
'IME_FLAG_NO_ENTER_ACTION' wasn't interpreted correctly for inputs
that specified both an action and this flag.
- The value 'IME_ACTION_UNSPECIFIED' should remove the Action key.
Diffstat (limited to 'srcs/juloo.keyboard2/Keyboard2View.java')
| -rw-r--r-- | srcs/juloo.keyboard2/Keyboard2View.java | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/srcs/juloo.keyboard2/Keyboard2View.java b/srcs/juloo.keyboard2/Keyboard2View.java index 18a6c72..49a9ccb 100644 --- a/srcs/juloo.keyboard2/Keyboard2View.java +++ b/srcs/juloo.keyboard2/Keyboard2View.java @@ -47,15 +47,8 @@ public class Keyboard2View extends View _handler = new Handler(this); _theme = new Theme(getContext(), attrs); _config = Config.globalConfig(); - refreshConfig(null); setOnTouchListener(this); - } - - /* Internally calls [reset()]. */ - public void refreshConfig(KeyboardData kw) - { - if (kw != null) - setKeyboard(kw); // handle layout options then calls reset(). + reset(); } public void setKeyboard(KeyboardData kw) |
