mirror of
https://github.com/Julow/Unexpected-Keyboard.git
synced 2025-02-04 19:59:36 +01:00
Fix crash in LayoutModifier
This commit is contained in:
parent
e4695e1ff4
commit
e13f58658d
@ -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:
|
||||||
|
Loading…
Reference in New Issue
Block a user