dcorking / wave-robot-java-client

Automatically exported from code.google.com/p/wave-robot-java-client
0 stars 0 forks source link

textView.replace(Range range, java.lang.String text) leads to wrong cursor position #1

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Grab the textview from a wave when DOCUMENT_CHANGED event occured
2. Replace a part of the document
3. Cursor will be positioned BEFORE the inserted text

What is the expected output? What do you see instead?
Cursor position should not be changed.

What version of the product are you using? On what operating system?
Chrome 2.0.172.28

Original issue reported on code.google.com by daniel.florey@gmail.com on 1 Jun 2009 at 1:44

GoogleCodeExporter commented 9 years ago
This problem occurs for me every time. I am replacing a smiley :-) with an 
image of someone smiling (<img 
src="..." alt=":-)"/>)

Original comment by goldsou...@gmail.com on 25 Oct 2009 at 5:11

GoogleCodeExporter commented 9 years ago
Yes this issue affects when the user types in something and in the middle of it 
you (a 
robot) try to change part of the document. The reposition of the cursor affects 
the 
user resulting in messy sentences. 
In DOCUMENT_CHANGED event any external entities (like robots) should not change 
the 
cursor position from the end users perspective.

Original comment by arafkarsh on 18 Nov 2009 at 9:48