Do not use IME_ACTION_NONE in the inputconnection

Using IME_ACTION_NONE prevents enter key to be used with the stock
Android TV keyboard.

Fixes #221.
This commit is contained in:
Fredrik Fornwall 2016-12-30 01:42:47 +01:00
parent 7d9d6fb797
commit b917acbbfa
1 changed files with 3 additions and 3 deletions

View File

@ -238,9 +238,9 @@ public final class TerminalView extends View {
// https://github.com/termux/termux-app/issues/137 (japanese chars and TYPE_NULL).
outAttrs.inputType = InputType.TYPE_NULL;
outAttrs.imeOptions |= EditorInfo.IME_FLAG_NO_FULLSCREEN |
EditorInfo.IME_FLAG_NO_ENTER_ACTION |
EditorInfo.IME_ACTION_NONE;
// Note that IME_ACTION_NONE cannot be used as that makes it impossible to input newlines using the on-screen
// keyboard on Android TV (see https://github.com/termux/termux-app/issues/221).
outAttrs.imeOptions = EditorInfo.IME_FLAG_NO_FULLSCREEN;
return new BaseInputConnection(this, true) {