abouttreesummaryrefslogcommitdiff
path: root/srcs/juloo.keyboard2/KeyValue.java
diff options
context:
space:
mode:
authorJules Aguillon2022-10-23 21:34:05 +0200
committerJules Aguillon2022-10-23 21:37:04 +0200
commit36e10a792ffd034ffb56e48e2e2282f6ae16cc8d (patch)
treeaf8b28705250fd8a1a685d0bc79c759cd5b66059 /srcs/juloo.keyboard2/KeyValue.java
parent55cece796588ad58646d9ea877912510af06e24e (diff)
downloadunexpected-keyboard-36e10a792ffd034ffb56e48e2e2282f6ae16cc8d.tar.gz
unexpected-keyboard-36e10a792ffd034ffb56e48e2e2282f6ae16cc8d.zip
Add the capslock key
The key enable caps lock immediately. It does nothing if caps lock is already enabled. It is not present on the keyboard by default but a place is defined on every layout, top-right of the shift key. It can be enabled in the settings. The icon is from materialdesignicons.com.
Diffstat (limited to 'srcs/juloo.keyboard2/KeyValue.java')
-rw-r--r--srcs/juloo.keyboard2/KeyValue.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/srcs/juloo.keyboard2/KeyValue.java b/srcs/juloo.keyboard2/KeyValue.java
index 9b89101..9c88b4a 100644
--- a/srcs/juloo.keyboard2/KeyValue.java
+++ b/srcs/juloo.keyboard2/KeyValue.java
@@ -16,7 +16,8 @@ final class KeyValue
CHANGE_METHOD,
ACTION,
SWITCH_PROGRAMMING,
- SWITCH_GREEKMATH
+ SWITCH_GREEKMATH,
+ CAPS_LOCK,
}
// Must be evaluated in the reverse order of their values.
@@ -287,6 +288,7 @@ final class KeyValue
addEventKey("switch_greekmath", "πλ∇¬", Event.SWITCH_GREEKMATH, FLAG_SMALLER_FONT);
addEventKey("change_method", "\u0009", Event.CHANGE_METHOD, FLAG_KEY_FONT | FLAG_SMALLER_FONT);
addEventKey("action", "Action", Event.ACTION, FLAG_SMALLER_FONT); // Will always be replaced
+ addEventKey("capslock", "\u0012", Event.CAPS_LOCK, FLAG_KEY_FONT);
addKeyeventKey("esc", "Esc", KeyEvent.KEYCODE_ESCAPE, FLAG_SMALLER_FONT);
addKeyeventKey("enter", "\u000E", KeyEvent.KEYCODE_ENTER, FLAG_KEY_FONT);