KeyEvents - KeyListener [message #75878] |
Wed, 27 February 2008 12:40 |
Eclipse User |
|
|
|
Originally posted by: me.micha-shl.de
Hallo,
You wrote for M2 that there might be implementation of
KeyEvents/KeyListener. I saw that the table widget supports Key Navigation
now. Can you tell me what you`ve planned for future releases ? Which
widgets are going to support KeyboardInput/Navigation next?
I just wanted to make an easy CommandLine/Console using RAP. I don`t want
do have any SubmitButton or stuff like that. My Question is, is there any
posibility for getting the Event when a User hits the ENTER- Key in
TextWidget in the next couple of months?
MfG / With kind regards
Michael
P.S.: Appreciate what you contributed over the last year. Thank You
|
|
|
Re: KeyEvents - KeyListener [message #75895 is a reply to message #75878] |
Wed, 27 February 2008 13:37 |
Eclipse User |
|
|
|
Originally posted by: benjamin.wolff.web.de
in fact this behaviour is already implemented, i use this regulary in my
app. you need to add a listener to the text widget which listens on
SWT.DefaultSelection Event, here's a snippet of how i do it:
userText.addListener(SWT.DefaultSelection, new Listener() {
public void handleEvent(Event e) {
doSomething();
}
});
when the text widget has the focus and the enter key is pressed this
listener will be fired.
hth.
-ben
|
|
|
|
Powered by
FUDForum. Page generated in 0.03048 seconds