abouttreesummaryrefslogcommitdiff
path: root/srcs/juloo.keyboard2/Config.java
diff options
context:
space:
mode:
authorJules Aguillon2022-03-06 19:36:09 +0100
committerJules Aguillon2022-03-06 19:36:09 +0100
commit534e4cb84323edfcc7bab969548b1baeba0018ee (patch)
tree74a816b7620753cd4aa472163be7889097ecac02 /srcs/juloo.keyboard2/Config.java
parente303008e666c129caf886ea27ab840e2cc2322c5 (diff)
downloadunexpected-keyboard-534e4cb84323edfcc7bab969548b1baeba0018ee.tar.gz
unexpected-keyboard-534e4cb84323edfcc7bab969548b1baeba0018ee.zip
Make the font smaller for the action key
Diffstat (limited to 'srcs/juloo.keyboard2/Config.java')
-rw-r--r--srcs/juloo.keyboard2/Config.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/srcs/juloo.keyboard2/Config.java b/srcs/juloo.keyboard2/Config.java
index cd9629a..0af2de9 100644
--- a/srcs/juloo.keyboard2/Config.java
+++ b/srcs/juloo.keyboard2/Config.java
@@ -134,9 +134,9 @@ final class Config
*/
public KeyboardData modify_layout(KeyboardData kw)
{
+ // Update the name to avoid caching in KeyModifier
KeyValue action_key = (actionLabel == null) ? null :
- new KeyValue(actionLabel, actionLabel, KeyValue.CHAR_NONE,
- KeyValue.EVENT_ACTION, KeyValue.FLAG_NOREPEAT);
+ KeyValue.getKeyByName("action").withNameAndSymbol(actionLabel, actionLabel);
return kw.replaceKeys(key -> {
if (key == null)
return null;