aboutsummaryrefslogtreecommitdiff
path: root/ShiftOS-TheRevival/MainForms
diff options
context:
space:
mode:
authorEverythingWindows <[email protected]>2022-11-17 11:44:01 +0700
committerEverythingWindows <[email protected]>2022-11-17 11:44:01 +0700
commit9d0b741e7b1ced233cd791f51e1c975b60d43acd (patch)
treec946d787509201ada3a34553c01a275f2f17969e /ShiftOS-TheRevival/MainForms
parentdc8ddb780f10e7c8372c558ad4dec5fd171b8cc8 (diff)
downloadshiftos-therevival-old-9d0b741e7b1ced233cd791f51e1c975b60d43acd.tar.gz
shiftos-therevival-old-9d0b741e7b1ced233cd791f51e1c975b60d43acd.tar.bz2
shiftos-therevival-old-9d0b741e7b1ced233cd791f51e1c975b60d43acd.zip
Added KeyboardHandler to handle shortcuts and key input to make it universally used
Diffstat (limited to 'ShiftOS-TheRevival/MainForms')
-rw-r--r--ShiftOS-TheRevival/MainForms/Console.vb12
1 files changed, 2 insertions, 10 deletions
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