Skip to main content



      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 09:43 Go to next message
Eclipse UserFriend
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 08:36 Go to previous message
Eclipse UserFriend
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 08:38] by Moderator

Previous Topic:I wondering d3 charting widget.
Next Topic:column pack on virtual table
Goto Forum:
  


Current Time: Sun Jul 06 13:31:09 EDT 2025

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

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

Back to the top