Share via


IUIAutomationElement::CurrentAcceleratorKey Property

Retrieves the accelerator key for the element.

Syntax

HRESULT IUIAutomationElement::get_CurrentAcceleratorKey(BSTR *retVal);

Parameters

  • retVal
    The address of a BSTR that receives a description of the accelerator key; for example, "Alt+A".

Return Value

Returns S_OK if successful, or an error value otherwise.

See Also

UIA_AcceleratorKeyPropertyId, IUIAutomationElement, IUIAutomationElement::CachedAcceleratorKey