C# Class Open.Core.Keyboard

Global monitoring of keyboard state.
Show file Open project: philcockfield/Open.TestHarness.SL

Public Methods

Method Description
IsKey ( jQueryApi.jQueryEvent e, Key keyCode ) : bool

Determines whether the specified code matches the given event.

ToKey ( jQueryApi.jQueryEvent e ) : Key

Converts the given key event to the corresponding enum value (if represented in the enum).

Private Methods

Method Description
FireKeydown ( jQueryApi.jQueryEvent e ) : void
FireKeyup ( jQueryApi.jQueryEvent e ) : void
Keyboard ( ) : System

Constructor.

Method Details

IsKey() public static method

Determines whether the specified code matches the given event.
public static IsKey ( jQueryApi.jQueryEvent e, Key keyCode ) : bool
e jQueryApi.jQueryEvent The jQuery keyboard event.
keyCode Key The code to match.
return bool

ToKey() public static method

Converts the given key event to the corresponding enum value (if represented in the enum).
public static ToKey ( jQueryApi.jQueryEvent e ) : Key
e jQueryApi.jQueryEvent The jQuery keyboard event.
return Key