Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Listening to changes in Text caret position/selection
Listening to changes in Text caret position/selection [message #1066193] Mon, 01 July 2013 13:43 Go to next message
Sebastien Arod is currently offline Sebastien Arod
Messages: 34
Registered: July 2009
Member
Hi,

I'm trying to add a listener on caret position in a Text widget.

From what I know there is no listener in SWT for that so I plugged several listeners:
* A MouseListener
* A Modify listener
* A KeyListener to listen to "arrows" and other keyboard navigation keys

The problem is that there is a different behavior in SWT vs RWT:
* In SWT the caret position is already updated when keyReleased is fired.
* In RWT the caret position is still at the previous position when keyReleased event is fired preventing me to track key related caret position changes.

I attached a snippet project to reproduce the issue.

Please let me know if I should create a bug to track this and also if there is a better way or a workaround to listen to caret position in RWT.

Regards,
-Seb

Re: Listening to changes in Text caret position/selection [message #1070195 is a reply to message #1066193] Wed, 17 July 2013 12:36 Go to previous message
Ingo Meyer is currently offline Ingo Meyer
Messages: 127
Registered: July 2009
Senior Member
Maybe this is also related to an critical bug I'm currently investigating.

If you use Databinding together with a text widget and you type something an the iPad the cursor is suddenly moved one to the left and from that on you push one character ahead. It's very annoying!

If I open a bug I will post the link here...

[Updated on: Wed, 17 July 2013 12:38]

Report message to a moderator

Previous Topic:use Nebula Grid, table.setData (RWT.FIXED_COLUMNS, 2), does not work
Next Topic:Mnemonic on top level menu item
Goto Forum:
  


Current Time: Fri Oct 24 13:06:24 GMT 2014

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

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