[sdk] TextField content partially deleted on focus with predictive text on

Bug #1396574 reported by Victor Tuson Palau
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ubuntu UX
Fix Committed
High
Olga Kemmet
ubuntu-keyboard
New
Undecided
Michael Sheldon
ubuntu-keyboard (Ubuntu)
New
Undecided
Michael Sheldon
ubuntu-ui-toolkit (Ubuntu)
Confirmed
Medium
Unassigned

Bug Description

With the following Textfield:
TextField {
                    id:editTitle
                    width:parent.width
                    text:taskView.tasktoEdit.title
                    placeholderText: i18n.tr("Add title")
                    style: TextFieldStyle {
                        overlaySpacing: 0
                        frameSpacing: 0
                        background: Item {}
                        color: UbuntuColors.lightAubergine
                    }
   }

And with predictive text on in the phone, if you try to click on the field while it contains text, part of the text where the cursor lands get deleted.

The work around is to set no predictive text: inputMethodHints: Qt.ImhNoPredictiveText however this is a problem when predictive text is required.

Revision history for this message
Victor Tuson Palau (vtuson) wrote :
Zoltan Balogh (bzoltan)
affects: ubuntu-ui-toolkit → ubuntu-ux
Zsombor Egri (zsombi)
no longer affects: ubuntu-ui-toolkit
Changed in ubuntu-keyboard:
assignee: nobody → Michael Sheldon (michael-sheldon)
Changed in ubuntu-keyboard (Ubuntu):
assignee: nobody → Michael Sheldon (michael-sheldon)
Revision history for this message
Michael Sheldon (michael-sheldon) wrote :

Having a bit of difficulty reproducing this on its own, which application is this from? I'm wondering if there might be some bad interaction between the setting of taskView.tasktoEdit.title and the keyboard placing the last word in the sentence back into pre-edit. I suspect the best solution might be to only re-enter pre-edit on deletion rather than also on focusing the field (a change I was already considering to solve a similar issue elsewhere), but it'd be good to be able to reproduce this case to verify that it'll fix the issue here as well.

Changed in ubuntu-ux:
assignee: nobody → Giorgio Venturi (giorgio-venturi)
importance: Undecided → High
status: New → Fix Committed
Changed in ubuntu-ux:
assignee: Giorgio Venturi (giorgio-venturi) → Olga Kemmet (olga-kemmet)
summary: - TextField content partially deleted on focus with predictive text on
+ [sdk] TextField content partially deleted on focus with predictive text
+ on
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.