mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-13 23:09:31 -06:00
bugfix in the keyboard translation
This commit is contained in:
@@ -374,7 +374,7 @@ public class TranslatorInputMethodService extends InputMethodService
|
||||
mTranslator.setSourceLanguage(newSource);
|
||||
handleChangeSourceLanguage(newSource);
|
||||
} else if (primaryCode == TranslatorKeyboard.KEYCODE_TARGET_LANGUAGE) {
|
||||
String translation = mTranslator.translate(mComposingText.toString());
|
||||
String translation = mTranslator.translate(getComposingString());
|
||||
getCurrentInputConnection().commitText(translation, 1);
|
||||
return;
|
||||
} else if (primaryCode < TranslatorKeyboard.KEYCODE_TARGET_LANGUAGE &&
|
||||
|
||||
Reference in New Issue
Block a user