Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Problem of enabling tab button in the Text
Problem of enabling tab button in the Text [message #1077797] Fri, 02 August 2013 02:47 Go to next message
Kevin Green is currently offline Kevin Green
Messages: 2
Registered: August 2013
Location: Beijing
Junior Member
I created a Text control in a composite, but when I press the Tab button , instead of adding a '\t' to the text, it just changed focus to the next control.How can I fix this problem ?
Thanks!
Re: Problem of enabling tab button in the Text [message #1079940 is a reply to message #1077797] Mon, 05 August 2013 05:01 Go to previous message
Tim Buschtoens is currently offline Tim Buschtoens
Messages: 379
Registered: July 2009
Senior Member
Hi.

I'm not entirely sure you can.
The only solution I could think of is to use ClientScripting (available
in the Incubator) to listen to KeyDown events on the Text fields and in
case of pressing a TAB key, set the events doit flag to false and
programmatically change the value of the Text field to insert a tab
character on the current selection. As I said, I'm not 100% sure it will
work, but it's well worth a try.

Greetings,
Tim

Am 02.08.2013 14:59, schrieb Kevin Green:
> I created a Text control in a composite, but when I press the Tab button
> , instead of adding a '\t' to the text, it just changed focus to the
> next control.How can I fix this problem ?
> Thanks!

--
Tim Buschtöns

Twitter: @EclipseRAP
Blog: http://eclipsesource.com/blogs/

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Previous Topic:Disable the scrolling in Combo
Next Topic:Exception Handler with EntryPoint/application
Goto Forum:
  


Current Time: Mon Jul 28 10:32:16 EDT 2014

Powered by FUDForum. Page generated in 0.01560 seconds