Textarea does not place cursor correctly on mouse click (map description in the editor)

Bug #1130469 reported by Nicolai Hähnle
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
widelands
Fix Released
Medium
Unassigned

Bug Description

I observed this in current trunk, bzr6512.

Steps to reproduce:
1. Create a new map in the editor.
2. Open the main menu and click on Map Options
3. Click on the field that contains the text "no description defined".
4. No text cursor appears, although internally, the text cursor is placed at the beginning of the field.
5. Press the delete key, cursor keys, or character keys; after that, text editing works correctly.

Expected behavior: The cursor should become visible immediately, in the place that is closest to where the user clicked.

Revision history for this message
Hans Joachim Desserud (hjd) wrote :

I'm not able to reproduce this 100% here. After clicking in the textarea, I don't see any cursor or anything, but I am able to type in it.

In build17 there is a cursor in the textarea, so there is a regression here, though hopefully less severe than it seems. I do fear a lot of users will assume they can't select the area unless we display a cursor or something though.

r6515 on Ubuntu 12.10.

Changed in widelands:
milestone: none → build18-rc1
status: New → Incomplete
tags: added: regression
Revision history for this message
Venatrix (elisabeth) wrote :

Almost the same as #1 here: When I type something the cursor appears.

But of course in the first place it’s hard to believe you actually can change something in this field…

r6515 on Ubuntu 12.04.

Revision history for this message
Nicolai Hähnle (nha) wrote :

I checked this again, and indeed: clicking on the textarea implicitly puts the cursor at the beginning of the area without showing the cursor.

The expected behaviour would be for the cursor to be placed as close to where the user clicked as possible, and to display the cursor immediately.

summary: - Cannot change map description in the editor
+ Textarea does not place cursor correctly on mouse click (map description
+ in the editor)
description: updated
Changed in widelands:
status: Incomplete → Confirmed
Revision history for this message
SirVer (sirver) wrote :

This one seems important too.

Revision history for this message
SirVer (sirver) wrote :

I fixed the regression (showing the cursor when the edit area receives keyboard focus) in r6761. I opened a followup bug report for the feature request (moving the cursor closest to the click) in bug 1225661.

Changed in widelands:
status: Confirmed → Fix Committed
Revision history for this message
SirVer (sirver) wrote :

Released in build-18 rc1.

Changed in widelands:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.