feat: disable letter cache (#446)

Fixes #445
This commit is contained in:
lollipopkit🏳️‍⚧️
2024-07-03 19:55:33 +08:00
committed by GitHub
parent 4430045550
commit 6e428c91d1
18 changed files with 103 additions and 69 deletions

View File

@@ -129,6 +129,7 @@ class SSHPageState extends State<SSHPage>
}
Widget _buildBody() {
final letterCache = Stores.setting.letterCache.fetch();
return SizedBox(
height: _media.size.height -
_virtKeysHeight -
@@ -144,8 +145,10 @@ class SSHPageState extends State<SSHPage>
_terminal,
key: _termKey,
controller: _terminalController,
keyboardType: TextInputType.text,
enableSuggestions: true,
keyboardType: letterCache
? TextInputType.text
: TextInputType.visiblePassword,
enableSuggestions: !letterCache,
textStyle: _terminalStyle,
theme: _terminalTheme,
deleteDetection: isMobile,