Skip to content

Commit e13f586

Browse files
committed
Fix crash in LayoutModifier
1 parent e4695e1 commit e13f586

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

srcs/juloo.keyboard2/LayoutModifier.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,9 @@ static KeyValue modify_key(KeyValue orig)
152152
return KeyValue.getKeyByName("change_method_prev");
153153
break;
154154
case ACTION:
155-
if (globalConfig.swapEnterActionKey && globalConfig.actionLabel != null)
155+
if (globalConfig.actionLabel == null)
156+
return null; // Remove the action key
157+
if (globalConfig.swapEnterActionKey)
156158
return KeyValue.getKeyByName("enter");
157159
return KeyValue.makeActionKey(globalConfig.actionLabel);
158160
case SWITCH_FORWARD:

0 commit comments

Comments
 (0)