aboutsummaryrefslogtreecommitdiff
path: root/source/WindowsFormsApplication1/API.cs
diff options
context:
space:
mode:
authorMichaelTheShifter <[email protected]>2016-07-04 17:43:04 -0400
committerMichaelTheShifter <[email protected]>2016-07-04 17:43:04 -0400
commit6e40ae80f39c766d611b4ca29aea0f6685db80dc (patch)
treea974377172b1d0e15f21b5c3491b100b2e0ee696 /source/WindowsFormsApplication1/API.cs
parent5be773d4f027ac0f00392be80d8cc5dfb67669be (diff)
downloadshiftos-c--6e40ae80f39c766d611b4ca29aea0f6685db80dc.tar.gz
shiftos-c--6e40ae80f39c766d611b4ca29aea0f6685db80dc.tar.bz2
shiftos-c--6e40ae80f39c766d611b4ca29aea0f6685db80dc.zip
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.
Diffstat (limited to 'source/WindowsFormsApplication1/API.cs')
-rw-r--r--source/WindowsFormsApplication1/API.cs3
1 files changed, 2 insertions, 1 deletions
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();
}