Skip to main content



      Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Capturing *all* key events
Capturing *all* key events [message #447574] Tue, 14 December 2004 19: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 11:15 Go to previous message
Eclipse UserFriend
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: Wed Jul 09 23:59:35 EDT 2025

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

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

Back to the top