From dfec26a93be8cc3bf605273a49a46223e2551cde Mon Sep 17 00:00:00 2001 From: Jules Aguillon Date: Mon, 10 Jan 2022 00:27:22 +0100 Subject: Swap the Enter and Action keys when needed When IME_FLAG_NO_ENTER_ACTION is set. --- srcs/juloo.keyboard2/Config.java | 2 ++ 1 file changed, 2 insertions(+) (limited to 'srcs/juloo.keyboard2/Config.java') diff --git a/srcs/juloo.keyboard2/Config.java b/srcs/juloo.keyboard2/Config.java index f7a104b..63befa5 100644 --- a/srcs/juloo.keyboard2/Config.java +++ b/srcs/juloo.keyboard2/Config.java @@ -36,6 +36,7 @@ final class Config public int key_flags_to_remove; public String actionLabel; // Might be 'null' public int actionId; // Meaningful only when 'actionLabel' isn't 'null' + public boolean swapEnterActionKey; // Swap the "enter" and "action" keys public final IKeyEventHandler handler; @@ -66,6 +67,7 @@ final class Config key_flags_to_remove = 0; actionLabel = null; actionId = 0; + swapEnterActionKey = false; handler = h; } -- cgit v1.2.3