diff options
| author | Raphael | 2022-03-05 14:17:45 -0500 |
|---|---|---|
| committer | GitHub | 2022-03-05 20:17:45 +0100 |
| commit | 5404e7432d9240b3c88dce3a8cf240362016293c (patch) | |
| tree | 1040c96d81da6609c725e1cb05c6b5f31f0ccae3 /srcs/juloo.keyboard2/KeyValue.java | |
| parent | e92504ae92873ca7f0efa80421893bc69f98fa11 (diff) | |
| download | unexpected-keyboard-5404e7432d9240b3c88dce3a8cf240362016293c.tar.gz unexpected-keyboard-5404e7432d9240b3c88dce3a8cf240362016293c.zip | |
Clicking twice on CTRL or ALT will lock them in 'ON' state (#72)
* Clicking twice on CTRL or ALT will lock them in 'ON' state
* Make Locking behaviour optional, configurable in preferences
* Nest the new settings into a different page
To avoid spamming the settings page and repetition in the summaries.
Cannot be a popup unfortunately because that would require API >= 11.
* Add Fn and Meta
Co-authored-by: Jules Aguillon <jules@j3s.fr>
Diffstat (limited to 'srcs/juloo.keyboard2/KeyValue.java')
| -rw-r--r-- | srcs/juloo.keyboard2/KeyValue.java | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/srcs/juloo.keyboard2/KeyValue.java b/srcs/juloo.keyboard2/KeyValue.java index ec29991..dd42f42 100644 --- a/srcs/juloo.keyboard2/KeyValue.java +++ b/srcs/juloo.keyboard2/KeyValue.java @@ -87,6 +87,11 @@ class KeyValue return new KeyValue(name, s, c, eventCode, flags); } + public KeyValue withFlags(int f) + { + return new KeyValue(name, symbol, char_, eventCode, f); + } + private static HashMap<String, KeyValue> keys = new HashMap<String, KeyValue>(); public KeyValue(String n, String s, char c, int e, int f) @@ -154,7 +159,7 @@ class KeyValue static { addModifierKey("shift", "\uE808", - FLAG_LOCK | FLAG_SHIFT | FLAG_KEY_FONT | FLAG_SMALLER_FONT); + FLAG_SHIFT | FLAG_KEY_FONT | FLAG_SMALLER_FONT); addModifierKey("ctrl", "Ctrl", FLAG_CTRL | FLAG_SMALLER_FONT); addModifierKey("alt", "Alt", FLAG_ALT | FLAG_SMALLER_FONT); addModifierKey("accent_aigu", "◌́", FLAG_ACCENT2); |
