I tried with text/textinput/textArea in simple code. the shortcuts(cmd+c/v/a) work well on mac 10.5 , mac 10.6 . and i also tried some popular air app, such as TweetDeck , Twhirl,and AOL. no issue founded
So i think there maybe some special/corner thing i missed ,Could you please share us some pieces of sample code to reproduce this bug?
x="63" y="146" width="274" >
<mx:Text x="63" y="215" text="Text" width="274"/>
<mx:TextArea x="63" y="241" width="274"/>
The shortcuts relies on the default "Edit" menu which comes with every
AIR app. I need to create a custom menu so I remove the "Edit" menu.
The shortcuts no long work.
Thanks for your useful info . now i can reproduce it by removing/customizing the default mac "Edit" menu.
1. It is not an AIR bug. finally i found it was because of different menu mechanism on mac.
“Copy and paste functionality is commonly triggered through menu commands and keyboard shortcuts. On OS X, an edit menu with the copy and paste commands is automatically created by the operating system, but you must add listeners to these menu commands to hook up your own copy and paste functions”
2. For more details , please refer to the help doc:
3. How to make the shortcut still work on mac after removing/customizing the default mac "Edit" menu:
after your customize your default "Edit" menu, add menu commands by yourself as follows on mac:
private function keyListener(event:KeyboardEvent):void
I tested it , works well. please try again.