block ctrl and alt in terminal

This commit is contained in:
Michael 2017-04-24 17:23:29 -04:00
parent 53bc4023f0
commit 7c070a8213
2 changed files with 10 additions and 4 deletions

View file

@ -250,6 +250,12 @@ namespace ShiftOS.WinForms.Applications
};
txt.KeyDown += (o, a) =>
{
if (a.Control == true || a.Alt == true)
{
a.SuppressKeyPress = true;
return;
}
if (a.KeyCode == Keys.Enter)
{
try

View file

@ -134,14 +134,14 @@ namespace ShiftOS.WinForms
}
};
this.Width = (LoadedSkin.LeftBorderWidth*2) + _parentWindow.Width + LoadedSkin.RightBorderWidth;
this.Height = (LoadedSkin.TitlebarHeight*2) + _parentWindow.Height + LoadedSkin.BottomBorderWidth;
this.pnlcontents.Controls.Add(this._parentWindow);
this._parentWindow.Dock = DockStyle.Fill;
this._parentWindow.Show();
SetupControls(this);
this.Width = LoadedSkin.LeftBorderWidth + this.Width + LoadedSkin.RightBorderWidth;
this.Height = LoadedSkin.TitlebarHeight + this.Height + LoadedSkin.BottomBorderWidth;
ControlManager.SetupControls(this._parentWindow);
Shiftorium.Installed += () =>