Qt.ImhDigitsOnly should only show digits

Bug #1586435 reported by Michael Terry
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
maliit-framework (Ubuntu)
Confirmed
Undecided
Unassigned
ubuntu-keyboard (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

When using "inputMethodHints: Qt.ImhDigitsOnly" in an SDK TextField, I get a keyboard that includes a hyphen, a space, a period, and a plus (with extended # and * on the plus).

That looks more like a keyboard I'd expect for Qt.ImhFormattedNumbersOnly.

But I only asked for digits!

Revision history for this message
Michael Terry (mterry) wrote :

Adding a maliit task, because it contains the following piece of code, which just seems broken to me:

    if (hints == Qt::ImhFormattedNumbersOnly || hints == Qt::ImhDigitsOnly) {
        type = Maliit::NumberContentType;
    }

Thus ubuntu-keyboard never has the information it needs to show the right keyboard.

Changing this in maliit would presumably mean adding a new contentType, which all maliit consumers would have to support (or suffer breakage)... :(

Revision history for this message
Michael Terry (mterry) wrote :

I've filed upstream bug https://github.com/maliit/framework/issues/31 about this.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in maliit-framework (Ubuntu):
status: New → Confirmed
Changed in ubuntu-keyboard (Ubuntu):
status: New → Confirmed
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.