public void formKeyPress(object sender, _KeyPressEventArgs e) { if (focused?.GetType() == typeof(TextInput)) { ((TextInput)focused).AddCharacter(e.KeyChar); } else { onKeyPress?.Invoke(e); } }
private void flDesigner1__KeyPress(object sender, _KeyPressEventArgs e) { if (e.KeyChar == Convert.ToChar(3)) // '' { ItemCopy_Click(null, null); } else if (e.KeyChar == Convert.ToChar(24)) // '' { ItemCut_Click(null, null); } else if (e.KeyChar == Convert.ToChar(22)) // '' { ItemPaste_Click(null, null); } }