copy-paste not working in a standalone

Peter M. Brigham pmbrig at gmail.com
Sun Jul 15 08:15:06 EDT 2012


On Jul 15, 2012, at 2:42 AM, Paul Hibbert wrote:

> ## Paste into the Main Stack script
> 
> on commandKeyDown pKey
>   switch pKey
>         case "c"
>         if the selection is not empty then set the clipboardData["text"] to the selection
>              break
>         case "x"
>         if the selection is not empty then
>            set the clipboardData["text"] to the selection
>            put empty into the selection
>         end if              
>         break
>         case "v"
>         if the clipboardData["text"] is not empty then put the clipboardData["text"] into the selectedText

I think that this will fail. Try changing the last clause to "put the clipboardData["text"] into the selection"
I could be wrong.

>              break
>         case "a"
>              select text of the focusedObject
>              break
>         case "z"
>              undo
>              break
>         default
>              pass commandKeyDown
>   end Switch
> end commandKeyDown

-- Peter

Peter M. Brigham
pmbrig at gmail.com
http://home.comcast.net/~pmbrig





More information about the use-livecode mailing list