Skip to main content


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 ArodFriend
Messages: 41
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 MeyerFriend
Messages: 162
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:I wondering d3 charting widget.
Next Topic:column pack on virtual table
Goto Forum:
  


Current Time: Tue Apr 23 08:42:29 GMT 2024

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

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

Back to the top