private void MainForm_KeyDown(object sender, KeyEventArgs e) { if (e.Modifiers == Keys.Control && e.KeyCode == Keys.C) { if ((!cbx_customCommand.Focused || String.IsNullOrWhiteSpace(cbx_customCommand.SelectedText)) && String.IsNullOrWhiteSpace(rtb_console.SelectedText)) { Debug.WriteLine("Keypress detected: CTRL + C"); CLI.AbortChildProcessesAsync(); e.Handled = e.SuppressKeyPress = true; } } else if (e.KeyCode == Keys.Escape) { Debug.WriteLine("Keypress detected: ESC"); CloseApplication(); } }
private void Btn_consoleStop_Click(object sender, EventArgs e) { CLI.AbortChildProcessesAsync(); }
private void Btn_LogcatAdvancedStop_Click(object sender, EventArgs e) { CLI.AbortChildProcessesAsync(); }