Share via


ExpKeyboardInput.KeyDown Event

Definition

// Register
event_token KeyDown(TypedEventHandler<ExpKeyboardInput, KeyEventArgs const&> const& handler) const;

// Revoke with event_token
void KeyDown(event_token const* cookie) const;

// Revoke with event_revoker
ExpKeyboardInput::KeyDown_revoker KeyDown(auto_revoke_t, TypedEventHandler<ExpKeyboardInput, KeyEventArgs const&> const& handler) const;
public event TypedEventHandler<ExpKeyboardInput,KeyEventArgs> KeyDown;
function onKeyDown(eventArgs) { /* Your code */ }
expKeyboardInput.addEventListener("keydown", onKeyDown);
expKeyboardInput.removeEventListener("keydown", onKeyDown);
- or -
expKeyboardInput.onkeydown = onKeyDown;
Public Custom Event KeyDown As TypedEventHandler(Of ExpKeyboardInput, KeyEventArgs) 

Event Type

Applies to