Capturing *all* key events [message #447574] |
Tue, 14 December 2004 19:25  |
Eclipse User |
|
|
|
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  |
Eclipse User |
|
|
|
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
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.06512 seconds