Throw away certain key events for Table? [message #459102] |
Tue, 02 August 2005 02:04 |
Eclipse User |
|
|
|
Originally posted by: functorx.yahoo.com
I am writing my first SWT app, and don't really know how to find the
answer to my question other than to ask you guys.
I have an SWT Table in my application. This table supports keyboard
navigation in the way that I would expect, which is good.
I've added a KeyListener to this table, which I use to enable certain
special keys to perform actions.
What I would like to do is to filter out certain keys from being sent to
the Table's default key handler. For instance, if I press '=', my program
performs the special action for '=' (implemented by my keylistener) but
then jumps to any entry whose text begins with '='. After handling that
keypress, I'd like to throw it out.
I'm used to overriding some handleKey() method and then only calling the
handleKey() for the superclass when I want to pass the event on. Is there
some sort of analogous hierarchy for event handling in SWT?
Thanks a lot,
Tom 7
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03799 seconds