NameCtrl.DoAccelerator Method

Applies to: SharePoint Foundation 2010

Opens the drop-down menu for online presence information if an on-object UI is displayed.

expression.DoAccelerator()

Parameters

expression

An expression that returns a NameCtrl Control object.

Remarks

This method is used for accessibility, and it should be called when the user presses ALT+SHIFT+F10.

Example

If an ActiveX control named NameObj is on the page, the following code responds to a KeyDown event:

if (window.event.altKey && window.event.shiftKey && window.event.keyCode==121)
   NameObj.DoAccelerator();
If window.event.altKey AndAlso window.event.shiftKey AndAlso window.event.keyCode=121 Then
   NameObj.DoAccelerator()
End If