Fix crash in LayoutModifier

This commit is contained in:
Jules Aguillon 2024-12-29 10:20:18 +01:00
parent e4695e1ff4
commit e13f58658d

View File

@ -152,7 +152,9 @@ public final class LayoutModifier
return KeyValue.getKeyByName("change_method_prev"); return KeyValue.getKeyByName("change_method_prev");
break; break;
case ACTION: 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.getKeyByName("enter");
return KeyValue.makeActionKey(globalConfig.actionLabel); return KeyValue.makeActionKey(globalConfig.actionLabel);
case SWITCH_FORWARD: case SWITCH_FORWARD: