commit | 0bab276cbbb7ca44594513b85619bd97f340d317 | [log] [tgz] |
---|---|---|
author | Jiyong Park <jiyong@google.com> | Fri Mar 28 17:34:38 2025 +0900 |
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Thu Apr 03 18:24:20 2025 -0700 |
tree | 54d57020f95544120f3e51aa80f18a1be3ce5911 | |
parent | b4b168305dde808258b6e21eac979205b7e78fbc [diff] |
Turn off IME features on terminal Bug: 391481577 Bug: 405891712 Test: open vi, type some texts, press enter (only once) -> moves to the next line Test: on the shell, type some texts, press space twice, type more text -> only the texts typed in are shown Test: turn on talkback. check focus goes to each line in the terminal Flag: EXEMPT bugfix (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:38f4903b40f471dd9e157edc14286cb7a195ab91) Merged-In: I2700534b56b546ae23bd208a7bbeb6711aa79f61 Change-Id: I2700534b56b546ae23bd208a7bbeb6711aa79f61
diff --git a/android/TerminalApp/java/com/android/virtualization/terminal/TerminalView.kt b/android/TerminalApp/java/com/android/virtualization/terminal/TerminalView.kt index 6917827..9910591 100644 --- a/android/TerminalApp/java/com/android/virtualization/terminal/TerminalView.kt +++ b/android/TerminalApp/java/com/android/virtualization/terminal/TerminalView.kt
@@ -286,7 +286,11 @@ override fun onCreateInputConnection(outAttrs: EditorInfo?): InputConnection? { val inputConnection = super.onCreateInputConnection(outAttrs) if (outAttrs != null) { - outAttrs.inputType = outAttrs.inputType or InputType.TYPE_TEXT_FLAG_NO_SUGGESTIONS + outAttrs.inputType = + InputType.TYPE_CLASS_TEXT or + InputType.TYPE_TEXT_FLAG_NO_SUGGESTIONS or + InputType.TYPE_TEXT_VARIATION_VISIBLE_PASSWORD + outAttrs.imeOptions = EditorInfo.IME_FLAG_FORCE_ASCII } return inputConnection }