abouttreesummaryrefslogcommitdiff
path: root/srcs/juloo.keyboard2/KeyEventHandler.java
diff options
context:
space:
mode:
authorJules Aguillon2025-07-27 22:09:45 +0200
committerJules Aguillon2025-12-28 17:56:37 +0100
commit98c1b8db82c0da8f49eb12d18c9001a57009eca5 (patch)
treefaddcbd29f19cb5c526f0a37c078ec11fc901c85 /srcs/juloo.keyboard2/KeyEventHandler.java
parentdfaf4dbb5766bf134cbf97d0516493e2256d2e5a (diff)
downloadunexpected-keyboard-98c1b8db82c0da8f49eb12d18c9001a57009eca5.tar.gz
unexpected-keyboard-98c1b8db82c0da8f49eb12d18c9001a57009eca5.zip
Candidates view
The `CandidatesView` is implemented as a `LinearLayout` that is divided horizontally with up to 3 `TextView`. It might in the future contain buttons on the sides. The candidate view is nested into the input view rather than using Android's `setCandidatesView` and callbacks as the API is unreliable and complicated. The first suggestion goes in the middle to be more accessible. The second suggestion goes on the right to be more accessible to the right-handed, because it must go somewhere.
Diffstat (limited to 'srcs/juloo.keyboard2/KeyEventHandler.java')
-rw-r--r--srcs/juloo.keyboard2/KeyEventHandler.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/srcs/juloo.keyboard2/KeyEventHandler.java b/srcs/juloo.keyboard2/KeyEventHandler.java
index fc3a641..145acbe 100644
--- a/srcs/juloo.keyboard2/KeyEventHandler.java
+++ b/srcs/juloo.keyboard2/KeyEventHandler.java
@@ -111,6 +111,12 @@ public final class KeyEventHandler
}
@Override
+ public void suggestion_entered(String text)
+ {
+ // TODO
+ }
+
+ @Override
public void paste_from_clipboard_pane(String content)
{
send_text(content);