Share via


InputKeyboardSource.ContextMenuKey Event

Definition

Occurs when the Menu virtual-key (or Shift + F10) is unhandled from a previous KeyDown event.

// Register
event_token ContextMenuKey(TypedEventHandler<InputKeyboardSource, ContextMenuKeyEventArgs const&> const& handler) const;

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

// Revoke with event_revoker
InputKeyboardSource::ContextMenuKey_revoker ContextMenuKey(auto_revoke_t, TypedEventHandler<InputKeyboardSource, ContextMenuKeyEventArgs const&> const& handler) const;
public event TypedEventHandler<InputKeyboardSource,ContextMenuKeyEventArgs> ContextMenuKey;
function onContextMenuKey(eventArgs) { /* Your code */ }
inputKeyboardSource.addEventListener("contextmenukey", onContextMenuKey);
inputKeyboardSource.removeEventListener("contextmenukey", onContextMenuKey);
- or -
inputKeyboardSource.oncontextmenukey = onContextMenuKey;
Public Custom Event ContextMenuKey As TypedEventHandler(Of InputKeyboardSource, ContextMenuKeyEventArgs) 

Event Type

Remarks

This event is not raised for context menu events generated from other hardware devices, such as mouse or pen.

Applies to

See also