mirror of
https://github.com/tonytins/tomas.git
synced 2025-03-15 12:21:23 +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()
|
||||
{
|
||||
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();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue