Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Assigning shortcut keys to Buttons in SWT  RSS feed

 
Vinayak Jallapelli
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I have two buttons in my form and have assigned shortcut to one button as '&A' and other one as '&a'.
The problem is that when I press Ctrl+A or Ctrl+a, always the first button is getting clicked (i.e. one with &A).

Is there any way in SWT to assign shortcut keys on lowercase and uppercase letters?

Thanks in advance,
Vinayak.
 
Maneesh Godbole
Bartender
Posts: 11445
18
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
To get the A I would need to press Shift A. So you need to set it as Ctrl+Shift+A
 
Vinayak Jallapelli
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Vinayak Jallapelli wrote:Hi All,

I have two buttons in my form and have assigned shortcut to one button as '&A' and other one as '&a'.
The problem is that when I press Alt+A or Alt+a, always the first button is getting clicked (i.e. one with &A).

Is there any way in SWT to assign shortcut keys on lowercase and uppercase letters?

Thanks in advance,
Vinayak.
 
Maneesh Godbole
Bartender
Posts: 11445
18
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Huh?
You quoted your own original post?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!