{-ms-accelerator} Trident Vendor-Prefixed Property | CSS: Presentation Layer

Standards Based Development

--ms-accelerator property is a Trident vendor-prefixed Microsoft Extension to css. --ms-accelerator sets or retrieves a string indicating whether the object represents a keyboard shortcut.

--ms-accelerator property is supported by Windows 2000 and up, enabling users to hide navigation indicators for menu items and controls until the ALT key is pressed.

An access key is a single character used as a keyboard shortcut for selecting an object. Press and hold the ALT key followed by the character to move input focus and invoke the default event associated with an object.

--ms-accelerator property in ie8 is a css extension and can be used as a synonym for accelerator in ie8 Standards Mode.

Example

The markup below uses the --ms-accelerator property in a u element to specify that the N in the label is a keyboard shortcut. When the option to "Hide keyboard navigation indicators until I use the Alt key" is enabled in the user's Display Properties, the N is not underlined until the user presses the ALT key. When ALT+N is pressed, the input / element that defines an accessKey attribute value of 'N' recieves focus.


<LABEL FOR="oName">
  <U STYLE="ACCELERATOR:true">N</U>ame:</LABEL>
  <INPUT TYPE="text" 	
    ID="oName" 
    SIZE="25"
    ACCESSKEY="N" 
    VALUE="Your name here" />

Property Values

false

Default. Object is not a keyboard shortcut.

true

Object is a keyboard shortcut.

References and Resources