Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [platform-swt-dev] How to hook the "Ctrl+Win" key


You will need to hack SWT to get this and/or write platform specific code.  The "Win" key is obvioulsy Windows specific and is not modeled on the other platforms.



"Janyckee Joz" <joo@xxxxxxxxxxx>
Sent by: platform-swt-dev-admin@xxxxxxxxxxx

03/17/2004 09:40 AM

Please respond to
platform-swt-dev

To
<platform-swt-dev@xxxxxxxxxxx>
cc
Subject
[platform-swt-dev] How to hook the "Ctrl+Win" key





Hi,
 
  I am using Windows and have the keyboard with "WIN" keys. I can hook the "Ctrl+Win" key using C++ or even _javascript_, but I find some difficulties in using the KeyListener of SWT.
 
The keycode of "Ctrl+Win" key is about 91 or 92, while the Ctrl + Z has the keycode of 90.
 
I found that the  
public void keyReleased(KeyEvent e) {}
and  
public void keyPressed(KeyEvent e) {}
did not listen on the "Ctrl+Win“ actually.
 
Is there any other way to hook the "Ctrl+Win", or is it impossible to do so?
 
Janyckee



Back to the top