fdp
unread,May 2, 2010, 5:43:54 AM5/2/10Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to minibuilder
Hi,
I'm a designer and AS3 developper working on the mac. I'd like to help
on this side of the project.
In order to get the "copy / paste" working, i compiled minibuilder
(with minibuilder) and made a few changes on "ScriptAreaEvents.as".
Cut, Copy, Paste and Select_all events are not dispatched when a
Texfield is on focus.
So i added this on the "onKeyDown" event handler :
<code>
else if(String.fromCharCode(e.charCode) == 'x' && e.ctrlKey)
{
onCut();
}
else if(String.fromCharCode(e.charCode) == 'c' && e.ctrlKey)
{
onCopy();
}
else if(String.fromCharCode(e.charCode) == 'v' && e.ctrlKey)
{
onPaste();
}
else if(String.fromCharCode(e.charCode) == 'a' && e.ctrlKey)
{
onSelectAll();
}
</code>
I also added "= null" on the "onSelectAll" function parameter.
and finally removed the "Cut, Copy, Paste ans Select_All" event
listeners.
It works fine on the mac !
Romain.