mirror of
https://github.com/fankes/termux-app.git
synced 2025-09-07 11:09:49 +08:00
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:
@@ -238,9 +238,9 @@ public final class TerminalView extends View {
|
|||||||
// https://github.com/termux/termux-app/issues/137 (japanese chars and TYPE_NULL).
|
// https://github.com/termux/termux-app/issues/137 (japanese chars and TYPE_NULL).
|
||||||
outAttrs.inputType = InputType.TYPE_NULL;
|
outAttrs.inputType = InputType.TYPE_NULL;
|
||||||
|
|
||||||
outAttrs.imeOptions |= EditorInfo.IME_FLAG_NO_FULLSCREEN |
|
// Note that IME_ACTION_NONE cannot be used as that makes it impossible to input newlines using the on-screen
|
||||||
EditorInfo.IME_FLAG_NO_ENTER_ACTION |
|
// keyboard on Android TV (see https://github.com/termux/termux-app/issues/221).
|
||||||
EditorInfo.IME_ACTION_NONE;
|
outAttrs.imeOptions = EditorInfo.IME_FLAG_NO_FULLSCREEN;
|
||||||
|
|
||||||
return new BaseInputConnection(this, true) {
|
return new BaseInputConnection(this, true) {
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user