mirror of
https://github.com/tonytins/tomas.git
synced 2025-03-15 04:11:24 +00:00
Ctrl+R now restarts the system
This commit is contained in:
parent
8813586efc
commit
952554b476
1 changed files with 4 additions and 2 deletions
|
@ -22,8 +22,10 @@ namespace Tomas.Kernel.Programs
|
||||||
public virtual void Start()
|
public virtual void Start()
|
||||||
{
|
{
|
||||||
System.InApp = true;
|
System.InApp = true;
|
||||||
var isCKey = sys.KeyboardManager.ReadKey().Key == sys.ConsoleKeyEx.C;
|
|
||||||
if (sys.KeyboardManager.ControlPressed && isCKey)
|
var isRKey = sys.KeyboardManager.ReadKey().Key == sys.ConsoleKeyEx.R;
|
||||||
|
|
||||||
|
if (sys.KeyboardManager.ControlPressed && isRKey)
|
||||||
System.Restart();
|
System.Restart();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue