mirror of
https://git.alee14.me/shiftos-archive/ShiftOS_TheReturn.git
synced 2025-01-22 18:02:16 +00:00
block ctrl and alt in terminal
This commit is contained in:
parent
53bc4023f0
commit
7c070a8213
2 changed files with 10 additions and 4 deletions
|
@ -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
|
||||
|
|
|
@ -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 += () =>
|
||||
|
|
Loading…
Reference in a new issue