abouttreesummaryrefslogcommitdiff
path: root/srcs/juloo.keyboard2/KeyValue.java
diff options
context:
space:
mode:
authorJules Aguillon2022-07-09 17:30:26 +0200
committerJules Aguillon2022-07-09 17:30:26 +0200
commitd5836ebb972949a65dd34eec9530cef321c85a81 (patch)
treefe0fac84df05824f26f1ca1cd26b5a3c2fea3e1b /srcs/juloo.keyboard2/KeyValue.java
parentdb8ebc2f4d2739fbf7dffe51a39d1e31c1574fdf (diff)
downloadunexpected-keyboard-d5836ebb972949a65dd34eec9530cef321c85a81.tar.gz
unexpected-keyboard-d5836ebb972949a65dd34eec9530cef321c85a81.zip
Add key for switching to the greekmath pane
The key is placed on the 3rd row of the numeric pane, by taking some space from the shift key.
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 fb4b776..383af8c 100644
--- a/srcs/juloo.keyboard2/KeyValue.java
+++ b/srcs/juloo.keyboard2/KeyValue.java
@@ -15,7 +15,8 @@ final class KeyValue
SWITCH_BACK_EMOJI,
CHANGE_METHOD,
ACTION,
- SWITCH_PROGRAMMING
+ SWITCH_PROGRAMMING,
+ SWITCH_GREEKMATH
}
// Must be evaluated in the reverse order of their values.
@@ -276,6 +277,7 @@ final class KeyValue
addEventKey("switch_emoji", "\u0001" , Event.SWITCH_EMOJI, FLAG_KEY_FONT | FLAG_SMALLER_FONT);
addEventKey("switch_back_emoji", "ABC", Event.SWITCH_BACK_EMOJI, 0);
addEventKey("switch_programming", "Prog", Event.SWITCH_PROGRAMMING, FLAG_SMALLER_FONT);
+ 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