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

Actually under KDE on Linux (Debian for what it matters) I use the
Win key to select KDE desktops.  X-Windows can qite easily recognise
this key, and the other WIndows key and you can map it as you 
require.

David

On Wednesday 17 March 2004 14:49, Steve Northover wrote:
> 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