TextElement.AccessKeyInvoked Event

Definition

Occurs when a user completes an access key sequence to notify the element that the access key action should be invoked.

// Register
event_token AccessKeyInvoked(TypedEventHandler<TextElement, AccessKeyInvokedEventArgs const&> const& handler) const;

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

// Revoke with event_revoker
TextElement::AccessKeyInvoked_revoker AccessKeyInvoked(auto_revoke_t, TypedEventHandler<TextElement, AccessKeyInvokedEventArgs const&> const& handler) const;
public event TypedEventHandler<TextElement,AccessKeyInvokedEventArgs> AccessKeyInvoked;
function onAccessKeyInvoked(eventArgs) { /* Your code */ }
textElement.addEventListener("accesskeyinvoked", onAccessKeyInvoked);
textElement.removeEventListener("accesskeyinvoked", onAccessKeyInvoked);
- or -
textElement.onaccesskeyinvoked = onAccessKeyInvoked;
Public Custom Event AccessKeyInvoked As TypedEventHandler(Of TextElement, AccessKeyInvokedEventArgs) 

Event Type

Windows requirements

Device family
Windows 10 Creators Update (introduced in 10.0.15063.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v4.0)

Remarks

For more info, see UIElement.AccessKeyInvoked.

Applies to

See also