InputKeyboardSource.ContextMenuKey Event
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
// 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.