abouttreesummaryrefslogcommitdiff
path: root/srcs/juloo.keyboard2/Keyboard2.java
diff options
context:
space:
mode:
authorJules Aguillon2026-01-30 21:18:48 +0100
committerGitHub2026-01-30 21:18:48 +0100
commit1b8506876a1d8cff876220a7b6610b7bbe9e8841 (patch)
tree4881a8e8fd4276a823c57869000308d1bc5ba66f /srcs/juloo.keyboard2/Keyboard2.java
parente05be0821ba507dd5ea661bdde0af8a14e6fcbd6 (diff)
downloadunexpected-keyboard-1b8506876a1d8cff876220a7b6610b7bbe9e8841.tar.gz
unexpected-keyboard-1b8506876a1d8cff876220a7b6610b7bbe9e8841.zip
Option to switch to the previously used keyboard (#1165)
The "Switch to the last used keyboard" is renamed to "Switching between input methods" and allows to select "Switch to last used", which was the default in older releases.
Diffstat (limited to 'srcs/juloo.keyboard2/Keyboard2.java')
-rw-r--r--srcs/juloo.keyboard2/Keyboard2.java9
1 files changed, 8 insertions, 1 deletions
diff --git a/srcs/juloo.keyboard2/Keyboard2.java b/srcs/juloo.keyboard2/Keyboard2.java
index a919405..4d008d9 100644
--- a/srcs/juloo.keyboard2/Keyboard2.java
+++ b/srcs/juloo.keyboard2/Keyboard2.java
@@ -369,10 +369,17 @@ public class Keyboard2 extends InputMethodService
get_imm().showInputMethodPicker();
break;
- case CHANGE_METHOD_AUTO:
+ case CHANGE_METHOD_PREV:
if (VERSION.SDK_INT < 28)
get_imm().switchToLastInputMethod(getConnectionToken());
else
+ switchToPreviousInputMethod();
+ break;
+
+ case CHANGE_METHOD_NEXT:
+ if (VERSION.SDK_INT < 28)
+ get_imm().switchToNextInputMethod(getConnectionToken(), false);
+ else
switchToNextInputMethod(false);
break;