<doc>
  <legacy_id>2095</legacy_id>
  <name>acceleratorModifiers</name>
  <type>property</type>
  <syntax>
    <example>set the acceleratorModifiers of <i>button</i> to {empty |<i> keys</i>}</example>
  </syntax>
  <library></library>
  <objects>
    <button/>
  </objects>
  <synonyms>
    <synonym>accelMods</synonym>
  </synonyms>
  <classification>
    <category>User Interaction</category>
  </classification>
  <references>
    <property tag="acceleratorText">acceleratorText Property</property>
  </references>
  <history>
    <introduced version="1.0">Added.</introduced>
  </history>
  <platforms>
    <mac/>
    <windows/>
    <linux/>
  </platforms>
  <classes>
    <desktop/>
    <web/>
  </classes>
  <security>
  </security>
  <summary>Specifies one or more <glossary tag="modifier key">modifier keys</glossary> that must be pressed with the <keyword tag="button">button</keyword> shortcut key specified by the <property tag="acceleratorKey">acceleratorKey</property> <glossary tag="property">property</glossary>.</summary>
  <examples>
    <example>set the acceleratorModifiers of button 1 to shift</example>
    <example>set the accelMods of button "Speak" to control,alt</example>
    <example>set the accelMods of button it to command,shift</example>
  </examples>
  <description>
    <p>Use the <b>acceleratorModifiers</b> <glossary tag="property">property</glossary>, along with the <property tag="acceleratorKey">acceleratorKey</property> <glossary tag="property">property</glossary>, to specify a shortcut <glossary tag="key combination">key combination</glossary> for a <keyword tag="button">button</keyword>.</p><p/><p><b>Value:</b></p><p>The <b>acceleratorModifiers</b> of a button consists of a list of one or more keys, separated by commas.</p><p/><p>The <i>keys</i> can be any of "control", "command", "alt", "option", and "shift". If you use "command" as a key, it is converted to "control". If you use "option" as a key, it is converted to "alt".</p><p/><p>By default, the <b>acceleratorModifiers</b> of a newly created <keyword tag="button">button</keyword> is empty.</p><p/><p><b>Comments:</b></p><p>The following statements set up a shortcut for a button called "Calculate":</p><p/><p>  set the acceleratorKey of button "Calculate" to "C"</p><p>  set the acceleratorModifiers of button "Calculate" to alt,shift</p><p/><p>When the user presses Alt-Shift-C (on Unix or Window systems) or Option-Shift-C (on Mac OS systems), the button's <b>mouseUp</b> <glossary tag="handler">handler</glossary> is <glossary tag="execute">executed</glossary>.</p><p/><p><img src="202652"/> <b>Cross-platform note:</b> On <glossary tag="Mac OS">Mac OS systems</glossary>, the Control key and <glossary tag="Command key">Command key</glossary> are equivalent when used with this <glossary tag="property">property</glossary>. The <function tag="optionKey">option Key</function> is likewise also equivalent to the Alt key.</p>
  </description>
</doc>