This is how I would up doing it:
on RawKeyDown pKey
if (pKey = 99 or pKey = 67) and the commandkey is down then
if the selectedfield <> empty then
put the selection into tSel
put the htmltext of the selection into tSelHtml
set the clipboarddata["text"] to tSel
set the clipboarddata["html"] to tSelHtml
select the selectedchunk
exit rawkeydown
end if
end if
pass rawkeydown
end rawkeydown
This is adapted from a the rawkeydown handler in taskmage, which does a
bunch of other stuff that does not need to be included here.
I find this script works well, and allows you to copy both formatted and
unformatted text so that it can be copied from a rev application and pasted
into any other application.
_______________________________________________
use-revolution mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution