Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » KeyEvents - KeyListener
KeyEvents - KeyListener [message #75878] Wed, 27 February 2008 12:40 Go to next message
Eclipse UserFriend
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 Go to previous messageGo to next message
Eclipse UserFriend
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
Re: KeyEvents - KeyListener [message #75960 is a reply to message #75895] Thu, 28 February 2008 09:34 Go to previous message
Eclipse UserFriend
Originally posted by: me.micha-shl.de

Hey Ben,

thanks a lot. I needed that so much.

Greetz
Michael
Previous Topic:Missing Theme
Next Topic:EclipseCon - BoF - UI Component Programming Best Practices (SWT, Nebula, JFace, Databinding ...)
Goto Forum:
  


Current Time: Mon Dec 30 18:04:58 GMT 2024

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

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

Back to the top