📜  检测按键 c# 代码示例

📅  最后修改于: 2022-03-11 14:49:06.250000             🧑  作者: Mango

代码示例1
private void Form1_KeyPress(object sender, KeyPressEventArgs e)
{
    if (e.KeyCode == Keys.F1 && e.Alt)
    {
        //do something
    }
}