diff options
| author | Jules Aguillon | 2022-02-20 13:09:39 +0100 |
|---|---|---|
| committer | Jules Aguillon | 2022-02-20 13:09:39 +0100 |
| commit | 51ff795be419ff5102b262c90371340f76c74f2c (patch) | |
| tree | 36bcf5114d8f41a0e05407b8f5aceac493e47c6a /srcs/juloo.keyboard2/KeyValue.java | |
| parent | 632a9ac590b92a52afe57f1f0aaaa919f9dcebdc (diff) | |
| download | unexpected-keyboard-51ff795be419ff5102b262c90371340f76c74f2c.tar.gz unexpected-keyboard-51ff795be419ff5102b262c90371340f76c74f2c.zip | |
Move pointer handling code to its own class
Separate the concerns and have a clearer interface between the two parts
of the code.
Diffstat (limited to 'srcs/juloo.keyboard2/KeyValue.java')
| -rw-r--r-- | srcs/juloo.keyboard2/KeyValue.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/srcs/juloo.keyboard2/KeyValue.java b/srcs/juloo.keyboard2/KeyValue.java index 8ce3cbe..15a3d18 100644 --- a/srcs/juloo.keyboard2/KeyValue.java +++ b/srcs/juloo.keyboard2/KeyValue.java @@ -17,7 +17,7 @@ class KeyValue public static final char CHAR_NONE = '\0'; // Behavior flags - public static final int FLAG_KEEP_ON = 1; + public static final int FLAG_LATCH = 1; public static final int FLAG_LOCK = (1 << 1); public static final int FLAG_NOREPEAT = (1 << 2); public static final int FLAG_NOCHAR = (1 << 3); @@ -126,7 +126,7 @@ class KeyValue private static void addModifierKey(String name, String symbol, int extra_flags) { addKey(name, symbol, CHAR_NONE, EVENT_NONE, - FLAG_KEEP_ON | FLAG_NOCHAR | FLAG_NOREPEAT | extra_flags); + FLAG_LATCH | FLAG_NOCHAR | FLAG_NOREPEAT | extra_flags); } private static void addSpecialKey(String name, String symbol, int event) |
