abouttreesummaryrefslogcommitdiff
diff options
context:
space:
mode:
authorJules Aguillon2024-12-29 10:20:18 +0100
committerJules Aguillon2024-12-29 10:20:18 +0100
commite13f58658df8673fa554bb60b34a643d5bd7d0ea (patch)
tree151de2283bed5530ba9043e5df20716ef2c0d61f
parente4695e1ff4780bd2fc7e7d539e00e8b7b13d6ceb (diff)
downloadunexpected-keyboard-e13f58658df8673fa554bb60b34a643d5bd7d0ea.tar.gz
unexpected-keyboard-e13f58658df8673fa554bb60b34a643d5bd7d0ea.zip
Fix crash in LayoutModifier
-rw-r--r--srcs/juloo.keyboard2/LayoutModifier.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/srcs/juloo.keyboard2/LayoutModifier.java b/srcs/juloo.keyboard2/LayoutModifier.java
index 1e49914..31f5468 100644
--- a/srcs/juloo.keyboard2/LayoutModifier.java
+++ b/srcs/juloo.keyboard2/LayoutModifier.java
@@ -152,7 +152,9 @@ public final class LayoutModifier
return KeyValue.getKeyByName("change_method_prev");
break;
case ACTION:
- if (globalConfig.swapEnterActionKey && globalConfig.actionLabel != null)
+ if (globalConfig.actionLabel == null)
+ return null; // Remove the action key
+ if (globalConfig.swapEnterActionKey)
return KeyValue.getKeyByName("enter");
return KeyValue.makeActionKey(globalConfig.actionLabel);
case SWITCH_FORWARD: