abouttreesummaryrefslogcommitdiff
path: root/srcs/juloo.keyboard2/Config.java
diff options
context:
space:
mode:
authorJules Aguillon2026-02-19 00:35:14 +0100
committerGitHub2026-02-19 00:35:14 +0100
commitebf80415d8034d853bd79ba7cfb578db67862529 (patch)
tree6c437e8130edace1fb1efc03b7a79dc1e5214b57 /srcs/juloo.keyboard2/Config.java
parent1cd252f8fa7b7b776c8b86f0c4e4357c46b5693b (diff)
downloadunexpected-keyboard-ebf80415d8034d853bd79ba7cfb578db67862529.tar.gz
unexpected-keyboard-ebf80415d8034d853bd79ba7cfb578db67862529.zip
Refactor: KeyValue constants (#1180)
* Refactor: KeyValue constants Add constants for keys that are accessed from the app's code. This simplifies the fake pointer handling in Keyboard2View. * Refactor: Pre-compute action key replacement The action key and the enter swap are pre-computed in EditorConfig. This simplifies the code.
Diffstat (limited to 'srcs/juloo.keyboard2/Config.java')
-rw-r--r--srcs/juloo.keyboard2/Config.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/srcs/juloo.keyboard2/Config.java b/srcs/juloo.keyboard2/Config.java
index 18e9fe7..2831254 100644
--- a/srcs/juloo.keyboard2/Config.java
+++ b/srcs/juloo.keyboard2/Config.java
@@ -281,10 +281,10 @@ public final class Config
{
switch (prefs.getString("change_method_key_replacement", "prev"))
{
- case "prev": return KeyValue.getKeyByName("change_method_prev");
- case "next": return KeyValue.getKeyByName("change_method_next");
+ case "prev": return KeyValue.CHANGE_METHOD_PREV;
+ case "next": return KeyValue.CHANGE_METHOD_NEXT;
default:
- case "picker": return KeyValue.getKeyByName("change_method");
+ case "picker": return KeyValue.CHANGE_METHOD;
}
}