mirror of
https://github.com/Julow/Unexpected-Keyboard.git
synced 2025-08-18 18:48:37 +02:00
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.
This commit is contained in:
@@ -59,6 +59,7 @@ class KeyEventHandler implements Config.IKeyEventHandler
|
||||
case SWITCH_SECOND_BACK: _recv.set_layout(Layout.Primary); break;
|
||||
case SWITCH_GREEKMATH: _recv.set_layout(Layout.Greekmath); break;
|
||||
case CAPS_LOCK: _recv.set_shift_state(true, true); break;
|
||||
case SWITCH_VOICE_TYPING: _recv.switch_voice_typing(); break;
|
||||
}
|
||||
break;
|
||||
case Keyevent:
|
||||
@@ -182,6 +183,7 @@ class KeyEventHandler implements Config.IKeyEventHandler
|
||||
{
|
||||
public void switchInputMethod();
|
||||
public void switchToPrevInputMethod();
|
||||
public void switch_voice_typing();
|
||||
public void setPane_emoji();
|
||||
public void setPane_normal();
|
||||
public void showKeyboardConfig();
|
||||
|
Reference in New Issue
Block a user