Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Convert enter key with tab key
Convert enter key with tab key [message #925635] Thu, 27 September 2012 22:52
Jesus   Luna Quiroga is currently offline Jesus Luna Quiroga
Messages: 65
Registered: July 2009
Location: Mexico
Member

Hi,
I want to convert the enter key to a tab key, in order to navigate through a composite with the enter key, I do this at SWT with the following code:

Text text = new Text(parent, SWT.NONE);
text.addTraverseListener(new TraverseListener(){
				@Override
				public void keyTraversed(TraverseEvent e) {
					if (e.detail == SWT.TRAVERSE_RETURN) {
							e.detail = SWT.TRAVERSE_TAB_NEXT;/*Event changed to tab*/
							e.doit = true; /*Indicate to execute the traverse*/
					}	
				}
			});


I tried this in RAP, but it didn't work. Do you know if there is a way to do this?

[Updated on: Thu, 27 September 2012 23:42]

Report message to a moderator

Previous Topic:Online GMF RCP possible using RAP ?
Next Topic:[RAP/RCP] Table row height
Goto Forum:
  


Current Time: Fri Oct 24 21:31:07 GMT 2014

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

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