Codebase list powercat / 2f36917
New upstream version 0.0~git20200727.4bea000 Arnaud Rebillout 2 years ago
1 changed file(s) with 2 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
168168 {
169169 if($Host.UI.RawUI.KeyAvailable)
170170 {
171 if(@(17,27) -contains ($Host.UI.RawUI.ReadKey("NoEcho,IncludeKeyDown").VirtualKeyCode))
171 if(@(17,27) -contains ($Host.UI.RawUI.ReadKey("NoEcho,IncludeKeyDown,IncludeKeyUp").VirtualKeyCode))
172172 {
173173 Write-Verbose "CTRL or ESC caught. Stopping UDP Setup..."
174174 $FuncVars["Socket"].Close()
450450 {
451451 if($Host.UI.RawUI.KeyAvailable)
452452 {
453 if(@(17,27) -contains ($Host.UI.RawUI.ReadKey("NoEcho,IncludeKeyDown").VirtualKeyCode))
453 if(@(17,27) -contains ($Host.UI.RawUI.ReadKey("NoEcho,IncludeKeyDown,IncludeKeyUp").VirtualKeyCode))
454454 {
455455 Write-Verbose "CTRL or ESC caught. Stopping TCP Setup..."
456456 if($FuncVars["l"]){$Socket.Stop()}