• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

Jack clouseau
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


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....


Paper has not yet been outlawed – so let your Java Swing application print with wild abandon: JPDF
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic