[Potlatch-dev] [OpenStreetMap] #3409: Modifying tags causes text cursor (insert point) to move to end of text field.

OpenStreetMap trac at openstreetmap.org
Wed Dec 22 10:55:15 GMT 2010


#3409: Modifying tags causes text cursor (insert point) to move to end of text
field.
-----------------------+----------------------------------------------------
 Reporter:  lakeyboy   |       Owner:  potlatch-dev@…                
     Type:  defect     |      Status:  new                           
 Priority:  minor      |   Milestone:                                
Component:  potlatch2  |     Version:                                
 Keywords:             |  
-----------------------+----------------------------------------------------
Changes (by stevage):

  * priority:  major => minor


Comment:

 Confirmed. There is some seriously funky behaviour going on there. In
 particular, take this sequence of events:
 1) Create a 'highway=zzz' tag, press enter (just to set a known starting
 state)
 2) Enter the 'zzz' part, and move the cursor the start.
 3) Press 'a' three times, producing "aaazzz".
 4) On the third press, the cursor jumps to the end, as described in this
 bug report.

 All kinds of bizarre stuff happens under the surface on the first three
 presses that is hidden due to code that tries to suppress it. For example,
 on the first press, the code thinks the drop down box has opened (it
 hasn't) and selected the first entry (bridleway). The second press and the
 zeroth behave "normally". The third, for reasons I don't yet understand,
 behaves as if you had just selected an entry from the drop down (which was
 never open): moving the cursor to the end is the correct behaviour in that
 case.

 I'll attach a debug trace of the above.

-- 
Ticket URL: <http://trac.openstreetmap.org/ticket/3409#comment:1>
OpenStreetMap <http://www.openstreetmap.org/>
OpenStreetMap is a free editable map of the whole world



More information about the Potlatch-dev mailing list