aboutsummaryrefslogtreecommitdiff
path: root/ShiftOS.WinForms/Tools
diff options
context:
space:
mode:
authorMichael <[email protected]>2017-02-18 13:25:30 -0500
committerMichael <[email protected]>2017-02-18 13:25:30 -0500
commit423569f4ae2558b135f92d2f9cb7e163eb7bcc22 (patch)
tree1ff082f62378119a916a73deb1eb3b4fb1c0b72f /ShiftOS.WinForms/Tools
parent5c025fd165755a7801c51ff263dbc12a7cdab4d6 (diff)
downloadshiftos_thereturn-423569f4ae2558b135f92d2f9cb7e163eb7bcc22.tar.gz
shiftos_thereturn-423569f4ae2558b135f92d2f9cb7e163eb7bcc22.tar.bz2
shiftos_thereturn-423569f4ae2558b135f92d2f9cb7e163eb7bcc22.zip
Add on_key_down event and other goodies
Diffstat (limited to 'ShiftOS.WinForms/Tools')
-rw-r--r--ShiftOS.WinForms/Tools/ControlManager.cs11
1 files changed, 11 insertions, 0 deletions
diff --git a/ShiftOS.WinForms/Tools/ControlManager.cs b/ShiftOS.WinForms/Tools/ControlManager.cs
index f9fb799..32f0217 100644
--- a/ShiftOS.WinForms/Tools/ControlManager.cs
+++ b/ShiftOS.WinForms/Tools/ControlManager.cs
@@ -229,8 +229,19 @@ namespace ShiftOS.WinForms.Tools
if (a.Control && a.KeyCode == Keys.T)
{
a.SuppressKeyPress = true;
+
+
+ if (SaveSystem.CurrentSave != null)
+ {
+ if (Shiftorium.UpgradeInstalled("window_manager"))
+ {
+ Engine.AppearanceManager.SetupWindow(new Applications.Terminal());
+ }
+ }
}
+ ShiftOS.Engine.Scripting.LuaInterpreter.RaiseEvent("on_key_down", a);
+ //a.Handled = true;
};
if (ctrl is Button)
{