Qt.ImhDigitsOnly should only show digits
Bug #1586435 reported by
Michael Terry
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.ImhFormatted
But I only asked for digits!
To post a comment you must log in.
Adding a maliit task, because it contains the following piece of code, which just seems broken to me:
if (hints == Qt::ImhFormatte dNumbersOnly || hints == Qt::ImhDigitsOnly) { :NumberContentT ype;
type = Maliit:
}
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)... :(