pasteKey

Typemessage
DictionaryLCS
LibraryLiveCode Script
Syntax
pasteKey
Associationscard, field
Summary

Sent when the user presses the key combination equivalent to the "Paste" menu item.

Introduced1.0
OSmac, windows, linux
Platformsdesktop, server
Example
on pasteKey -- replace returns with spaces before pasting
   if the clipboardData["text"] is not empty then 
      set the clipboardData["text"] to \
            replaceText(the clipboardData["text"],return,space)
   end if
   paste
end pasteKey
RelatedMessage: cutKey, copyKey
Object: stack
Glossary: menu item, key combination, Windows, development environment, message, menu, Mac OS, Unix, keyboard equivalent
Description

Handle the pasteKey message if you want to change the normal pasting process, or prevent use of the Paste keyboard equivalent without changing the menu.

The LiveCode development environment traps the pasteKey message, unless "Suspend LiveCode UI" is turned on in the Development menu. This means that the pasteKey message is not received by a stack if it's running in the development environment.

The pasteKey message is sent when the user presses Command-V (on Mac OS systems), Control-V (on Windows systems), Shift-Insert (on Unix systems), or the keyboard Paste key.

Tagsui