Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Capturing *all* key events
Capturing *all* key events [message #447574] Wed, 15 December 2004 00:25 Go to next message
Eclipse UserFriend
Originally posted by: jsalz-eclipse.mail.jsalz.net

Up against a wall and was wondering if anyone has any ideas...

I'm writing a view for which I'd like to be able to capture *all* key
events, even those for which keyboard shortcuts have been registered.
(It's a terminal view - I need to be able to get at all the control
characters, function keys, etc.) Is there any way to get first crack at
key events before accelerators are processed?

I've have a little luck adding a KeyDown filter on the Display immediately
after creating it - that captures some but not all events. I need 'em all!

- Jon
Re: Capturing *all* key events [message #447632 is a reply to message #447574] Wed, 15 December 2004 16:15 Go to previous message
Steve Northover is currently offline Steve NorthoverFriend
Messages: 1636
Registered: July 2009
Senior Member
You can't. By definition, accelerators are handled before key events and
are eaten if a match occurs. For this reason, Eclipse doesn't use real
operating system accelerators to implement key bindings.

"Jon Salz" <jsalz-eclipse@mail.jsalz.net> wrote in message
news:cpo096$ltk$1@www.eclipse.org...
> Up against a wall and was wondering if anyone has any ideas...
>
> I'm writing a view for which I'd like to be able to capture *all* key
> events, even those for which keyboard shortcuts have been registered.
> (It's a terminal view - I need to be able to get at all the control
> characters, function keys, etc.) Is there any way to get first crack at
> key events before accelerators are processed?
>
> I've have a little luck adding a KeyDown filter on the Display immediately
> after creating it - that captures some but not all events. I need 'em
all!
>
> - Jon
>
>
Previous Topic:Question about SWT_AWT deadlock issues
Next Topic:Table and Combo boxes in GTK versus Windows
Goto Forum:
  


Current Time: Sat Dec 05 00:43:17 GMT 2020

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

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

Back to the top