diff options
| author | Jules Aguillon | 2022-07-30 17:42:58 +0200 |
|---|---|---|
| committer | Jules Aguillon | 2022-07-30 17:56:31 +0200 |
| commit | 85d798299eaee3affc9e548975c9f3dac390e6e3 (patch) | |
| tree | ab26cbb81471547418a2dad9ac63d88a2f6f73b0 /srcs/juloo.keyboard2/Keyboard2.java | |
| parent | dec0a7471b20f8fd84a59f25b5c00043cc872865 (diff) | |
| download | unexpected-keyboard-85d798299eaee3affc9e548975c9f3dac390e6e3.tar.gz unexpected-keyboard-85d798299eaee3affc9e548975c9f3dac390e6e3.zip | |
Standard auto-capitalisation only after space
Change the capitalisation algorithm to use Android's
'getCursorCapsMode'. This requires a bit of cursor calculations but
should feel more standard.
The auto completion only triggers after a space is typed or backspace is
pressed.
Diffstat (limited to 'srcs/juloo.keyboard2/Keyboard2.java')
| -rw-r--r-- | srcs/juloo.keyboard2/Keyboard2.java | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/srcs/juloo.keyboard2/Keyboard2.java b/srcs/juloo.keyboard2/Keyboard2.java index 756295e..b2197a1 100644 --- a/srcs/juloo.keyboard2/Keyboard2.java +++ b/srcs/juloo.keyboard2/Keyboard2.java @@ -251,8 +251,7 @@ public class Keyboard2 extends InputMethodService public void onUpdateSelection(int oldSelStart, int oldSelEnd, int newSelStart, int newSelEnd, int candidatesStart, int candidatesEnd) { super.onUpdateSelection(oldSelStart, oldSelEnd, newSelStart, newSelEnd, candidatesStart, candidatesEnd); - update_shift_state( - _autocap.selection_updated(oldSelStart, newSelStart, getCurrentInputConnection())); + update_shift_state(_autocap.selection_updated(oldSelStart, newSelStart)); } @Override |
