diff options
| author | Jules Aguillon | 2022-06-05 19:30:53 +0200 |
|---|---|---|
| committer | Jules Aguillon | 2022-06-05 19:30:53 +0200 |
| commit | 5cc7fdf6d79ab0d497c771de409934786a95b146 (patch) | |
| tree | 5cf334965d4733aefd950763316e6e2e6f883700 /srcs/juloo.keyboard2/Keyboard2.java | |
| parent | cc571ea1ca6e583024f9295b131ec199aa66cfd8 (diff) | |
| download | unexpected-keyboard-5cc7fdf6d79ab0d497c771de409934786a95b146.tar.gz unexpected-keyboard-5cc7fdf6d79ab0d497c771de409934786a95b146.zip | |
Refactor: Separate Events and Keyevents and use enums
Negative values for internal events are preventing further refactoring.
Add a new kind of key and split internal events (now Event) and
Android's key events (now Keyevent).
Use enums events and modifiers outside of the KeyValue class.
Internally, they are converted to and from integer.
Diffstat (limited to 'srcs/juloo.keyboard2/Keyboard2.java')
| -rw-r--r-- | srcs/juloo.keyboard2/Keyboard2.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/srcs/juloo.keyboard2/Keyboard2.java b/srcs/juloo.keyboard2/Keyboard2.java index 24ec4a4..32a27a8 100644 --- a/srcs/juloo.keyboard2/Keyboard2.java +++ b/srcs/juloo.keyboard2/Keyboard2.java @@ -300,7 +300,7 @@ public class Keyboard2 extends InputMethodService { if (key != null && key.getKind() == KeyValue.Kind.Event - && key.getEvent() == KeyValue.EVENT_SWITCH_PROGRAMMING) + && key.getEvent() == KeyValue.Event.SWITCH_PROGRAMMING) return KeyValue.getKeyByName("switch_text"); return key; } |
