#25 snippet in SSH

This commit is contained in:
lollipopkit
2023-04-16 14:08:10 +08:00
parent fd2d59b1e0
commit 8ba888a5b3
3 changed files with 71 additions and 62 deletions

View File

@@ -275,8 +275,10 @@ class _SSHPageState extends State<SSHPage> {
copy(terminalSelected);
break;
case VirtualKeyFunc.snippet:
// TODO: Handle this case.
// _showSnippet();
showSnippetDialog(context, _s, (s) {
_terminal.textInput(s.script);
_terminal.keyInput(TerminalKey.enter);
});
break;
}
}