FromKeyCode() публичный статический Метод

Converts Windows Forms Keys to X11 keysyms.
public static FromKeyCode ( Keys key ) : int
key Keys The key.
Результат int
Пример #1
0
        private void VncControl_KeyUp(object sender, KeyEventArgs e)
        {
            int keysym = VncKeysym.FromKeyCode(e.KeyCode); if (keysym < 0)

            {
                return;
            }

            SendKeyUpdate(keysym, false); _keysyms.Remove(keysym);
        }
Пример #2
0
        private void VncControl_KeyDown(object sender, KeyEventArgs e)
        {
            int keysym = VncKeysym.FromKeyCode(e.KeyCode); if (keysym < 0)

            {
                return;
            }

            SendKeyUpdate(keysym, true); _keysyms.Add(keysym);
        }