Shikhar13 / codenameone

Automatically exported from code.google.com/p/codenameone
0 stars 0 forks source link

RFE: set cursor position behind last char in TextField when TextField is first selected. #266

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Put a TextField in a Form and put some text in it by default
2. Select the TextField
3. The cursor is before the first char

What is the expected output? What do you see instead?
I think everyone would expect that the cursor is behind the last char (when 
initially selecting the textfield), instead it's before the first char.

What version of the product are you using? On what operating system?
latest cn1, w7

Please provide any additional information below.
This might be low priority because it's very easy to implement yourself, but it 
should be default i think..

Original issue reported on code.google.com by tron.cos...@gmail.com on 16 Jul 2012 at 12:04

GoogleCodeExporter commented 9 years ago
ah and maybe the cursor position should be saved when the textfield looses 
focus.

Original comment by tron.cos...@gmail.com on 16 Jul 2012 at 12:06

GoogleCodeExporter commented 9 years ago
You can use setCursorPosition but that should be the default. Cursor position 
should be restored always if that's not the case then that's a bug. Is it on a 
device, which one?

Original comment by shai.almog on 16 Jul 2012 at 4:41

GoogleCodeExporter commented 9 years ago
are you referring to the simulator

Original comment by cf27...@gmail.com on 16 Jul 2012 at 12:19

GoogleCodeExporter commented 9 years ago
this is only in the simulator, on the device (at least android) it does work! 
sorry so this might be not a bug/rfe!

Original comment by tron.cos...@gmail.com on 16 Jul 2012 at 2:50

GoogleCodeExporter commented 9 years ago
fixed the simulator

Original comment by cf27...@gmail.com on 30 Aug 2012 at 9:38