Add flags to imeOptions

Add IME_FLAG_NO_ENTER_ACTION and IME_ACTION_NONE. I haven't
encountered any issue without them, but specifying them is correct.
This commit is contained in:
Fredrik Fornwall
2016-12-04 17:32:40 +01:00
parent fcbc036f92
commit d12256f5e5

View File

@@ -238,8 +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;
// Let part of the application show behind when in landscape:
outAttrs.imeOptions |= EditorInfo.IME_FLAG_NO_FULLSCREEN;
outAttrs.imeOptions |= EditorInfo.IME_FLAG_NO_FULLSCREEN |
EditorInfo.IME_FLAG_NO_ENTER_ACTION |
EditorInfo.IME_ACTION_NONE;
return new BaseInputConnection(this, true) {