Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Use of Keyboard Shortcuts
Use of Keyboard Shortcuts [message #445373] Thu, 04 November 2004 15:09 Go to next message
Andreas is currently offline AndreasFriend
Messages: 29
Registered: July 2009
Junior Member
Hello everybody!

My problem is:

I would like to have Keyboardshortcuts in my application. (e.g. STRG+Q =
exit appl.) So I need to know how I can find out, which key is pressed on
the keyboard. How do I get this information? Or is there an easier way to
implement shortcuts?

Thankx for your help

Andreas Hrabal
Re: Use of Keyboard Shortcuts [message #445386 is a reply to message #445373] Thu, 04 November 2004 18:13 Go to previous messageGo to next message
Steve Northover is currently offline Steve NorthoverFriend
Messages: 1636
Registered: July 2009
Senior Member
See MenuItem.setAccelerator().

"Andreas" <andreas.hrabal@ruv.de> wrote in message
news:cmdgnp$pd7$1@eclipse.org...
> Hello everybody!
>
> My problem is:
>
> I would like to have Keyboardshortcuts in my application. (e.g. STRG+Q =
> exit appl.) So I need to know how I can find out, which key is pressed on
> the keyboard. How do I get this information? Or is there an easier way to
> implement shortcuts?
>
> Thankx for your help
>
> Andreas Hrabal
>
Re: Use of Keyboard Shortcuts [message #445650 is a reply to message #445373] Mon, 08 November 2004 16:07 Go to previous message
Veronika Irvine is currently offline Veronika IrvineFriend
Messages: 1272
Registered: July 2009
Senior Member
If you are talking about keyboard shortcuts in the context of eclipse, you
should ask this question in the eclipse platform newsgroup:

news://news.eclipse.org/eclipse.platform

"Andreas" <andreas.hrabal@ruv.de> wrote in message
news:cmdgnp$pd7$1@eclipse.org...
> Hello everybody!
>
> My problem is:
>
> I would like to have Keyboardshortcuts in my application. (e.g. STRG+Q =
> exit appl.) So I need to know how I can find out, which key is pressed on
> the keyboard. How do I get this information? Or is there an easier way to
> implement shortcuts?
>
> Thankx for your help
>
> Andreas Hrabal
>
Previous Topic:NullPointerException in MessageDialog: SWT cannont find the standard dialog icons
Next Topic:TableTree on linux-gtk
Goto Forum:
  


Current Time: Wed Oct 21 02:22:26 GMT 2020

Powered by FUDForum. Page generated in 0.02006 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top