Esempio n. 1
0
        private void textBox4_KeyUp(object sender, KeyEventArgs e)
        {
            Form1.KeyModifier modifier = modifierListener(sender, e);
            label5.Text = "Revert";
            if ((int)modifier != 0)
            {
                textBox4.Text = modifier.ToString() + " + " + e.KeyCode.ToString();
            }
            else
            {
                textBox4.Text = e.KeyCode.ToString();
            }

            if (textBox4.Text.Count() == 0)
            {
                textBox4.Text = "Invalid Key";
            }

            baseForm.changeHotKey(0, e, modifier);
            label5.Focus();
        }