From 9d0b741e7b1ced233cd791f51e1c975b60d43acd Mon Sep 17 00:00:00 2001 From: EverythingWindows Date: Thu, 17 Nov 2022 11:44:01 +0700 Subject: Added KeyboardHandler to handle shortcuts and key input to make it universally used --- ShiftOS-TheRevival/MainForms/Console.vb | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) (limited to 'ShiftOS-TheRevival/MainForms/Console.vb') diff --git a/ShiftOS-TheRevival/MainForms/Console.vb b/ShiftOS-TheRevival/MainForms/Console.vb index 5e8ef82..5dca6dc 100644 --- a/ShiftOS-TheRevival/MainForms/Console.vb +++ b/ShiftOS-TheRevival/MainForms/Console.vb @@ -98,16 +98,8 @@ Public Class Console Private Sub txtterm_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles TextBox1.KeyDown KeyInput = e.KeyData - Select Case e.KeyData - Case (Keys.Control + Keys.Q) - If CurrentInterpreter = "terminal" Then - Else - TerminateApp(KeyInput) - TextRebind() - End If - Case Else - CaptureKeyBinding(KeyInput) - End Select + InputKey = e.KeyData + ShortcutHandle() If ReleaseCursor = True Then Else -- cgit v1.2.3