/// <summary> /// Intercepts all key down strokes and populate textbox only on valid /// shortcut keys</summary> /// <param name="sender">Sender</param> /// <param name="e">Event args</param> private void txtNewShortcut_KeyDown(object sender, KeyEventArgs e) { e.SuppressKeyPress = true; m_newKey = KeysUtil.KeyArgToKeys(e); m_newKey = KeysUtil.NumPadToNum(m_newKey); UpdateControls(); }