修复快捷键错误

This commit is contained in:
ZouJin 2023-08-16 20:12:25 +10:00
parent a200b6ebaf
commit 4d47ed66ca

View File

@ -209,7 +209,14 @@ namespace VPet_Simulator.Windows
}
else
{
System.Windows.Forms.SendKeys.SendWait(content);
try
{
System.Windows.Forms.SendKeys.SendWait(content);
}
catch (Exception e)
{
MessageBox.Show("快捷键运行失败:无法运行指定内容".Translate() + '\n' + e.Message);
}
}
}