diff options
| author | Jules Aguillon | 2024-12-29 10:20:18 +0100 |
|---|---|---|
| committer | Jules Aguillon | 2024-12-29 10:20:18 +0100 |
| commit | e13f58658df8673fa554bb60b34a643d5bd7d0ea (patch) | |
| tree | 151de2283bed5530ba9043e5df20716ef2c0d61f /srcs/juloo.keyboard2/LayoutModifier.java | |
| parent | e4695e1ff4780bd2fc7e7d539e00e8b7b13d6ceb (diff) | |
| download | unexpected-keyboard-e13f58658df8673fa554bb60b34a643d5bd7d0ea.tar.gz unexpected-keyboard-e13f58658df8673fa554bb60b34a643d5bd7d0ea.zip | |
Fix crash in LayoutModifier
Diffstat (limited to 'srcs/juloo.keyboard2/LayoutModifier.java')
| -rw-r--r-- | srcs/juloo.keyboard2/LayoutModifier.java | 4 |
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: |
