Alex Rivera | Logout

How to use Command-c/Command-v shortcut in Mac to copy/paste text?

Asked 2011-08-31T05:03:46.447
17

I have a Java Swing application that i want to run on Mac OS X. I want to use the normal Mac copy/paste shortcuts to copy/paste text to a text field in my Java application.

Ctrl+c & Ctrl+v does the trick but i want to use Command+c & Command+v instead. How can i do that?

Edit
Report

1 Answer

1

Are you running pure Swing? If so it should do that automatically(note it may not make the little menu animation if you dont use an Application bundle). If not then you will have to consult the documentation for whatever API you are using.

Just tested it and it works fine on Snow Leopard.

answered 2011-08-31T05:39:44.323

Your Answer