From 534e4cb84323edfcc7bab969548b1baeba0018ee Mon Sep 17 00:00:00 2001 From: Jules Aguillon Date: Sun, 6 Mar 2022 19:36:09 +0100 Subject: Make the font smaller for the action key --- srcs/juloo.keyboard2/Config.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'srcs/juloo.keyboard2/Config.java') 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; -- cgit v1.2.3