abouttreesummaryrefslogcommitdiff
path: root/srcs/juloo.keyboard2/Keyboard2.java
diff options
context:
space:
mode:
Diffstat (limited to 'srcs/juloo.keyboard2/Keyboard2.java')
-rw-r--r--srcs/juloo.keyboard2/Keyboard2.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/srcs/juloo.keyboard2/Keyboard2.java b/srcs/juloo.keyboard2/Keyboard2.java
index 02c062a..9e54aaf 100644
--- a/srcs/juloo.keyboard2/Keyboard2.java
+++ b/srcs/juloo.keyboard2/Keyboard2.java
@@ -362,6 +362,8 @@ public class Keyboard2 extends InputMethodService
{
super.onUpdateSelection(oldSelStart, oldSelEnd, newSelStart, newSelEnd, candidatesStart, candidatesEnd);
_keyeventhandler.selection_updated(oldSelStart, newSelStart);
+ if ((oldSelStart == oldSelEnd) != (newSelStart == newSelEnd))
+ _keyboardView.set_selection_state(newSelStart != newSelEnd);
}
@Override
@@ -480,6 +482,11 @@ public class Keyboard2 extends InputMethodService
_keyboardView.set_compose_pending(pending);
}
+ public void selection_state_changed(boolean selection_is_ongoing)
+ {
+ _keyboardView.set_selection_state(selection_is_ongoing);
+ }
+
public InputConnection getCurrentInputConnection()
{
return Keyboard2.this.getCurrentInputConnection();