<doc>
  <legacy_id>1354</legacy_id>
  <name>pasteKey</name>
  <type>message</type>
  <syntax>
    <example>pasteKey</example>
  </syntax>
  <library></library>
  <objects>
    <field/>
  </objects>
  <synonyms>
  </synonyms>
  <classification>
    <category>User Interaction</category>
  </classification>
  <references>
    <message tag="cutKey">cutKey Message</message>
    <message tag="copyKey">copyKey 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 "Paste" <glossary tag="menu item">menu item</glossary>.</summary>
  <examples>
    <example>on pasteKey <code><i>-- replace returns with spaces before pasting</i></code></p><p>  if the clipboardData["text"] is not empty then set \</p><p>     the clipboardData["text"] to \</p><p>     replaceText(the clipboardData["text"],return,space)</p><p>  paste</p><p>end pasteKey</example>
  </examples>
  <description>
    <p>Handle the <b>pasteKey</b> <keyword tag="message box">message</keyword> if you want to change the normal pasting process, or prevent use of the Paste <glossary tag="keyboard equivalent">keyboard equivalent</glossary> without changing the <keyword tag="menu">menu</keyword>.</p><p/><p><b>Comments:</b></p><p>The LiveCode development environment traps the <b>pasteKey</b> <keyword tag="message box">message</keyword>, unless "Suspend LiveCode UI" is turned on in the Development menu. This means that the <b>pasteKey</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>.</p><p/><p>The <b>pasteKey</b> <keyword tag="message box">message</keyword> is sent when the user presses Command-V (on <glossary tag="Mac OS">Mac OS systems</glossary>), Control-V (on <glossary tag="Windows">Windows systems</glossary>), Shift-Insert (on <glossary tag="Unix">Unix systems</glossary>), or the keyboard Paste key.</p>
  </description>
</doc>