File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Swing / AWT / SWT and the fly likes Short-cut key issue in SWT (Ctrl+C and Ctrl+v) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Short-cut key issue in SWT (Ctrl+C and Ctrl+v)" Watch "Short-cut key issue in SWT (Ctrl+C and Ctrl+v)" New topic

Short-cut key issue in SWT (Ctrl+C and Ctrl+v)

Jack clouseau

Joined: May 14, 2008
Posts: 22


Can anybody tell me how to handle Ctrl+c and Ctrl+v key releases in an Eclipse application?

Am currently using Eclipse 3.5. The key bindings has been defined in the PlugIn.xml.

As soon as i start the application if i do Ctrl+c or Ctrl+v the events are not getting triggered.

But the event triggers only after i manuallay open the EDIT MENU (which has Copy and Paste IAction's in it..For these IAction's i have set the Accelerator's Ctrl+c and Ctrl+v respectively) . After opening the Edit menu manually now if i use the short-cut keys my application is responding to those events. Am not sure what is the problem here...

Is there a better way to handle these short-cut keys issue in Eclipse 3.5?

Any suggestions will be much appreciated....


A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea!!!
I agree. Here's the link:
subject: Short-cut key issue in SWT (Ctrl+C and Ctrl+v)
It's not a secret anymore!