Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » How can I capture global hotkey?
How can I capture global hotkey? [message #437114] Sat, 29 May 2004 05:41 Go to next message
Eclipse UserFriend
Originally posted by: stubma.163.com

I use addFilter method in Display to capture hotkey, but it's no use when
the main window is deactived.

In windows, maybe I can write some JNI code to set windows hook, but what
about linux? Is there some easy way to implement this?

Thanks

Stubma
Re: How can I capture global hotkey? [message #437185 is a reply to message #437114] Mon, 31 May 2004 14:46 Go to previous message
Steve Northover is currently offline Steve NorthoverFriend
Messages: 1636
Registered: July 2009
Senior Member
You can't capture keys when no widget in SWT has focus. This can be done
with Windows hook calls but it's not portable.

"stubma" <stubma@163.com> wrote in message news:c9979e$g3$1@eclipse.org...
> I use addFilter method in Display to capture hotkey, but it's no use when
> the main window is deactived.
>
> In windows, maybe I can write some JNI code to set windows hook, but what
> about linux? Is there some easy way to implement this?
>
> Thanks
>
> Stubma
>
>
Previous Topic:ToolItem.setWidth() not working?
Next Topic:Executing without the need for -Djava.library.path
Goto Forum:
  


Current Time: Fri Mar 29 06:00:24 GMT 2024

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

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

Back to the top