diff options
| author | Jules Aguillon | 2023-06-03 18:11:42 +0200 |
|---|---|---|
| committer | Jules Aguillon | 2023-06-03 18:11:42 +0200 |
| commit | 85cdb9b2b5e4a43ace04e97dbfa7350aa84efedc (patch) | |
| tree | 93480372487b307bbb75ad401d800639f0ce7389 /srcs/juloo.keyboard2/ExtraKeyCheckBoxPreference.java | |
| parent | 69e0b4c2a2424b83ce0ec876938ec3e73dd5b612 (diff) | |
| download | unexpected-keyboard-85cdb9b2b5e4a43ace04e97dbfa7350aa84efedc.tar.gz unexpected-keyboard-85cdb9b2b5e4a43ace04e97dbfa7350aa84efedc.zip | |
Add Voice Typing key
The new key switches to any installed "voice" input method.
If several input methods matches, no effort is made to choose.
Might misbehave with some input methods other than Google's on API < 28.
It is placed on the middle of the arrows on the bottom bar. It is
enabled by default and can be removed in the "Extra keys" option.
The key is not removed from the keyboard if no voice input method
exists.
Diffstat (limited to 'srcs/juloo.keyboard2/ExtraKeyCheckBoxPreference.java')
| -rw-r--r-- | srcs/juloo.keyboard2/ExtraKeyCheckBoxPreference.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/srcs/juloo.keyboard2/ExtraKeyCheckBoxPreference.java b/srcs/juloo.keyboard2/ExtraKeyCheckBoxPreference.java index 8938d2d..8f7471a 100644 --- a/srcs/juloo.keyboard2/ExtraKeyCheckBoxPreference.java +++ b/srcs/juloo.keyboard2/ExtraKeyCheckBoxPreference.java @@ -16,6 +16,7 @@ public class ExtraKeyCheckBoxPreference extends CheckBoxPreference { "alt", "meta", + "voice_typing", "accent_aigu", "accent_grave", "accent_double_aigu", @@ -56,6 +57,8 @@ public class ExtraKeyCheckBoxPreference extends CheckBoxPreference { switch (name) { + case "voice_typing": + return true; default: return false; } |
