📅  最后修改于: 2022-03-11 14:48:56.200000             🧑  作者: Mango
private void MainWindow_Loaded(object sender, RoutedEventArgs e)
{
var window = Window.GetWindow(this);
window.KeyDown += HandleKeyPress;
}