<doc>
  <legacy_id>1066</legacy_id>
  <name>cutKey</name>
  <type>message</type>
  <syntax>
    <example>cutKey</example>
  </syntax>
  <library></library>
  <objects>
    <field/>
  </objects>
  <synonyms>
  </synonyms>
  <classification>
    <category>User Interaction</category>
  </classification>
  <references>
    <command tag="delete">delete Command</command>
    <message tag="backspaceKey">backspaceKey Message</message>
    <message tag="copyKey">copyKey Message</message>
    <command tag="cut">cut Command</command>
    <message tag="pasteKey">pasteKey Message</message>
    <message tag="undoKey">undoKey Message</message>
    <message tag="deleteKey">deleteKey Message</message>
  </references>
  <history>
    <introduced version="1.0">Added.</introduced>
  </history>
  <platforms>
    <mac/>
    <windows/>
    <linux/>
  </platforms>
  <classes>
    <desktop/>
    <server/>
    <web/>
  </classes>
  <security>
  </security>
  <summary>Sent when the user presses the <glossary tag="key combination">key combination</glossary> equivalent to the Cut <glossary tag="menu item">menu item</glossary>.</summary>
  <examples>
    <example>on cutKey</p><p>  if word 1 of the focusedObject is "card" then</p><p>    answer error "Cannot cut a card."</p><p>  else pass cutKey</p><p>end cutKey</example>
  </examples>
  <description>
    <p>Handle the <b>cutKey</b> <keyword tag="message box">message</keyword> if you want to change the normal cut process, or prevent use of the Cut <glossary tag="keyboard equivalent">keyboard equivalent</glossary> without changing the menu.</p><p/><p><b>Comments:</b></p><p>The LiveCode development environment traps the <b>cutKey</b> <keyword tag="message box">message</keyword>. This means that the <b>cutKey</b> <keyword tag="message box">message</keyword> is not received by a <object tag="stack">stack</object> if it's running in the <glossary tag="development environment">development environment</glossary>, To test a <b>cutKey</b> <glossary tag="handler">handler</glossary>, choose Development menu<img src="202656"/>Suspend Development Tools<important/>.</p><p/><p><b>cutKey</b> <keyword tag="message box">message</keyword> is sent when the user presses Command-X (on <glossary tag="Mac OS">Mac OS systems</glossary>), Control-X (on <glossary tag="Windows">Windows systems</glossary>), Shift-Delete (on <glossary tag="Unix">Unix systems</glossary>), or the keyboard Cut key.</p><p/><p>The message is sent to the active (focused) control, or to the current card if no control is focused.</p>
  </description>
</doc>