replicating SWING/AWT keyPressed and keyTyped events [message #439985] |
Tue, 20 July 2004 04:24 |
Eclipse User |
|
|
|
Originally posted by: news.vadalus.com
Hi All,
Can someone tell me what is the best way of replicating the behaviour of
the SWING/AWT keyPressed and keyTyped events? (SWT only having the more
sensible keyPressed and keyReleased) I have some code I am converting
over from swing and it has quite a complicated set of interactions with
these events. It would be simpler just to replicate them I think.
I think I can replicate this by just have keypressed being called twice
whenever I press a key, one where keyTyped is fired and a subsequent one
where keyPressed is fired. Complexities arise though as I need to be
able to consume the event (e.doit = false) separately for each event.
Any help would be appreciated!
L
|
|
|
|
Powered by
FUDForum. Page generated in 0.02489 seconds