Problem of enabling tab button in the Text [message #1077797] |
Fri, 02 August 2013 02:47  |
Eclipse User |
|
|
|
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  |
Eclipse User |
|
|
|
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/
|
|
|
Powered by
FUDForum. Page generated in 0.30287 seconds