From 53113cadd9654c827ae306905dae4d738dedf818 Mon Sep 17 00:00:00 2001 From: Jules Aguillon Date: Sun, 9 Jan 2022 20:26:06 +0100 Subject: Add the Action key It is placed on the top-right of the enter key on every layouts. It sends a special event (performEditorAction) instead of writing a newline. The "actionId" is passed through the EditorInfo object in an obfuscated way so it's not clear whether it's using the right one. --- srcs/juloo.keyboard2/Config.java | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'srcs/juloo.keyboard2/Config.java') diff --git a/srcs/juloo.keyboard2/Config.java b/srcs/juloo.keyboard2/Config.java index 43c039f..f7a104b 100644 --- a/srcs/juloo.keyboard2/Config.java +++ b/srcs/juloo.keyboard2/Config.java @@ -34,6 +34,8 @@ final class Config // Dynamically set public boolean shouldOfferSwitchingToNextInputMethod; public int key_flags_to_remove; + public String actionLabel; // Might be 'null' + public int actionId; // Meaningful only when 'actionLabel' isn't 'null' public final IKeyEventHandler handler; @@ -62,6 +64,8 @@ final class Config // initialized later shouldOfferSwitchingToNextInputMethod = false; key_flags_to_remove = 0; + actionLabel = null; + actionId = 0; handler = h; } -- cgit v1.2.3