Chapter 33: Copy and paste
Use the classes in the clipboard API to copy information to and from the system clipboard. The data formats that can be transferred into or out of an application running in OpenFL include:
- Text
HTML text, rich text, bitmaps, and other more advanced formats may be supported in future versions.
The static Clipboard.generalClipboard
property represents the operating system
clipboard. The Clipboard class provides methods for reading and writing data to
clipboard objects.
The TextField class implements default behavior for the normal copy and paste keyboard shortcuts. To implement copy and paste shortcut behavior for custom components, you can listen for these keystrokes directly. You can also use native menu commands along with key equivalents to respond to the keystrokes indirectly.