示例#1
0
        private void MaterialEditor_KeyDown(object sender, KeyEventArgs e)
        {
            var materialEditor = (frmMaterialEditor)sender;

            if (e.KeyCode == Keys.Escape)
            {
                materialEditor.Close();
                //here parent
                OnEscKeyPressed.Invoke(materialEditor, null);
            }
        }
示例#2
0
    void Update()
    {
        if (Input.GetKeyDown(KeyCode.F))
        {
            OnFKeyPressed?.Invoke();
        }

        if (Input.GetKeyDown(KeyCode.Escape))
        {
            OnEscKeyPressed?.Invoke();
        }
    }
示例#3
0
 private static void PrintJobProperties_OnEscKeyPressed(object sender, EventArgs e)
 {
     OnEscKeyPressed.Invoke(sender, e);
 }