mirror of
https://github.com/getpaseo/paseo.git
synced 2026-11-26 02:05:31 +00:00
fix(app): keep Android terminal input out of keyboard learning (#10586)
Passwords typed at a terminal prompt (sudo, SSH passphrases) were learned by Gboard and offered as suggestions in other apps. The hidden terminal input turned off suggestions and autofill, but nothing set IME_FLAG_NO_PERSONALIZED_LEARNING, the flag keyboards read as "incognito". React Native's TextInput has no prop for it, and its view is prebuilt, so PaseoTerminal adds the flag when React Native applies the terminal input's nativeID, before the input can take focus. Input type and layout are unchanged, so typing, composition and the language switch keep working.
This commit is contained in:
@@ -121,6 +121,12 @@ from `packages/app/android`:
|
||||
|
||||
These check terminal arrow ownership, held-key repeats and modifiers, and ordinary text-field editing.
|
||||
|
||||
Run the terminal module's tests the same way with `:paseo-terminal:connectedDebugAndroidTest`. Besides
|
||||
row layout, they check that the terminal input asks the keyboard not to learn what is typed
|
||||
(`IME_FLAG_NO_PERSONALIZED_LEARNING`), so passwords typed at a prompt stay out of Gboard's
|
||||
suggestions in other apps. React Native's TextInput has no prop for that flag, and it replaces
|
||||
`imeOptions` when `returnKeyType` or `disableFullscreenUI` is set, so the terminal input sets neither.
|
||||
|
||||
Run the display density regression tests the same way:
|
||||
|
||||
```bash
|
||||
|
||||
Reference in New Issue
Block a user