From 6e40ae80f39c766d611b4ca29aea0f6685db80dc Mon Sep 17 00:00:00 2001 From: MichaelTheShifter Date: Mon, 4 Jul 2016 17:43:04 -0400 Subject: Add luatextbox widget and more. - Syntax highlighting textbox for Lua API - That textbox also supports C# syntax highlighting - Added framework for custom desktop environments in Lua. --- source/WindowsFormsApplication1/API.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'source/WindowsFormsApplication1/API.cs') diff --git a/source/WindowsFormsApplication1/API.cs b/source/WindowsFormsApplication1/API.cs index 5ab9631..3ccab3c 100644 --- a/source/WindowsFormsApplication1/API.cs +++ b/source/WindowsFormsApplication1/API.cs @@ -1063,7 +1063,7 @@ namespace ShiftOS { if (e.KeyCode == Keys.T && e.Control && formToCreate.Name != "Terminal") { - CreateForm(new Terminal(), CurrentSave.TerminalName, Properties.Resources.iconTerminal); + CurrentSession.InvokeCTRLT(); } if (formToCreate.Name != "Terminal" || Upgrades["windowedterminal"] == true) { @@ -1111,6 +1111,7 @@ namespace ShiftOS } })); WindowComposition.SafeToAddControls = true; + API.CurrentSession.Invoke(new Action(() => { CurrentSession.InvokeWindowOp("open", formToCreate); })); }; bw.RunWorkerAsync(); } -- cgit v1.2.3