From 7c070a8213fc59f289385d82b60c3a49c02e03a9 Mon Sep 17 00:00:00 2001 From: Michael Date: Mon, 24 Apr 2017 17:23:29 -0400 Subject: block ctrl and alt in terminal --- ShiftOS.WinForms/Applications/Terminal.cs | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'ShiftOS.WinForms/Applications/Terminal.cs') 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 -- cgit v1.2.3