Trapping pasteKey message in the Rev IDE
scott at tactilemedia.com
Thu Feb 28 17:28:00 CST 2008
Recently, Terry Judd wrote:
>> Terry, you can override nearly any message by trapping it in a
>> frontScript handler inserted into the message path after Rev loads.
>> Plugins generally work well for this as they're loaded after Rev's own
> Hi Richard - I actually tried inserting a frontScript with a pasteKey
> handler included but it never fired. Given that there doesn't appear to be
> any Rev frontscript for pasteKey I assumed that this and related message are
> somehow handled differently in the IDE - but I'm only guessing.
I was all prepared to dismiss Richard's suggestion because I SWEAR I've
tried to do what he said before, but when loading the following as a
frontScript, I get the behavior I want (and I think you do to):
on commandKeyDown K
if K = "v" then put "A paste occurred"
wait 20 with messages
Using Rev 2.8.1 Win/Mac the above seems to work as expected.
Tactile Media, Multimedia & Design
More information about the use-livecode