Skip to main content


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 QuirogaFriend
Messages: 67
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:[RAP/RCP] Table row height
Next Topic:[ANN] RAP 1.5.1 released
Goto Forum:
  


Current Time: Wed Apr 24 16:54:44 GMT 2024

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

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

Back to the top