mirror of
https://github.com/nix-community/nix-on-droid-app.git
synced 2025-12-03 07:31:09 +01: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:
parent
7d9d6fb797
commit
b917acbbfa
1 changed files with 3 additions and 3 deletions
|
|
@ -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) {
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue