diff options
| author | Michael <[email protected]> | 2017-04-24 17:23:29 -0400 |
|---|---|---|
| committer | Michael <[email protected]> | 2017-04-24 17:23:29 -0400 |
| commit | 7c070a8213fc59f289385d82b60c3a49c02e03a9 (patch) | |
| tree | ebd88bcea3e95a52134ad3379a79395fb783f813 /ShiftOS.WinForms/Applications/Terminal.cs | |
| parent | 53bc4023f0834df79bf18e519c7196eafec2c649 (diff) | |
| download | shiftos_thereturn-7c070a8213fc59f289385d82b60c3a49c02e03a9.tar.gz shiftos_thereturn-7c070a8213fc59f289385d82b60c3a49c02e03a9.tar.bz2 shiftos_thereturn-7c070a8213fc59f289385d82b60c3a49c02e03a9.zip | |
block ctrl and alt in terminal
Diffstat (limited to 'ShiftOS.WinForms/Applications/Terminal.cs')
| -rw-r--r-- | ShiftOS.WinForms/Applications/Terminal.cs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/ShiftOS.WinForms/Applications/Terminal.cs b/ShiftOS.WinForms/Applications/Terminal.cs index cae0bda..a4889e9 100644 --- a/ShiftOS.WinForms/Applications/Terminal.cs +++ b/ShiftOS.WinForms/Applications/Terminal.cs @@ -250,6 +250,12 @@ namespace ShiftOS.WinForms.Applications }; txt.KeyDown += (o, a) => { + if (a.Control == true || a.Alt == true) + { + a.SuppressKeyPress = true; + return; + } + if (a.KeyCode == Keys.Enter) { try |
