mirror of https://github.com/quasar/Quasar.git
Trim start of Remote Shell commands (#216)
This commit is contained in:
parent
8d32c58901
commit
bf42e9c4f1
|
@ -42,7 +42,7 @@ private void txtConsoleInput_KeyDown(object sender, KeyEventArgs e)
|
|||
{
|
||||
if (e.KeyCode == Keys.Enter && !string.IsNullOrEmpty(txtConsoleInput.Text.Trim()))
|
||||
{
|
||||
string input = txtConsoleInput.Text;
|
||||
string input = txtConsoleInput.Text.TrimStart();
|
||||
txtConsoleInput.Text = string.Empty;
|
||||
|
||||
bool isExit = (input.StartsWith("exit") && input.Length > "exit".Length && input[4] == ' ') || input == "exit";
|
||||
|
|
Loading…
Reference in New Issue