修复快捷键错误

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

View File

@ -208,9 +208,16 @@ namespace VPet_Simulator.Windows
} }
} }
else else
{
try
{ {
System.Windows.Forms.SendKeys.SendWait(content); System.Windows.Forms.SendKeys.SendWait(content);
} }
catch (Exception e)
{
MessageBox.Show("快捷键运行失败:无法运行指定内容".Translate() + '\n' + e.Message);
}
}
} }
public void ShowSetting(int page = -1) public void ShowSetting(int page = -1)