Skip to content

Commit

Permalink
修正输入命令时按回车键显示消息错误的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
andywu188 committed May 29, 2024
1 parent 89f3c1f commit f2f048f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions NewLife.Agent/ServiceBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,7 @@ protected virtual void ProcessMenu()
Console.WriteLine();

if (key.KeyChar == '0') break;
if (key.KeyChar == '\r' || key.KeyChar == '\n') continue;
try
{
var result = Command.Handle(key.KeyChar, args);
Expand Down

0 comments on commit f2f048f

Please sign in to comment.