Table of Contents

Method GetKeyCode

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

GetKeyCode(Keys)

Gets the keyboard code from Keys.

public static Keys GetKeyCode(Keys keys)

Parameters

keys Keys

Returns

Keys

A Keys value that is the key code for the event.

Remarks

This function removes key modifiers (CTRL, SHIFT, and ALT) from the Keys and returns only key codes without modifiers.