Readonly TextArea accepts return key events when using RichText format
Bug #1334344 reported by
Dan Chapman
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ubuntu UI Toolkit |
Fix Released
|
Critical
|
Cris Dywan | ||
ubuntu-ui-toolkit (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Vivid |
New
|
Undecided
|
Unassigned | ||
ubuntu-ui-toolkit (Ubuntu RTM) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
When using a readonly TextArea like the snippet below, it still accepts return key events when the text format is set to TextEdit.RichText, resulting in either text being broken on to new lines or empty lines being created .
TextArea {
anchors {
left: parent.left
right: parent.right
}
readOnly: true
textFormat: TextEdit.RichText
text: "I can break this line up with the Return key when textFormat: TextEdit.RichText"
}
Related branches
lp:~ubuntu-sdk-team/ubuntu-ui-toolkit/noReadOnlyReturn
- PS Jenkins bot: Needs Fixing (continuous-integration)
- Zsombor Egri: Approve
-
Diff: 33 lines (+12/-0)2 files modifiedmodules/Ubuntu/Components/TextArea.qml (+2/-0)
tests/unit_x11/tst_components/tst_textarea.qml (+10/-0)
Changed in ubuntu-ui-toolkit: | |
importance: | Undecided → Critical |
status: | New → Triaged |
Changed in ubuntu-ui-toolkit: | |
assignee: | nobody → Christian Dywan (kalikiana) |
Changed in ubuntu-ui-toolkit: | |
status: | Triaged → In Progress |
Changed in ubuntu-ui-toolkit: | |
milestone: | none → 10.24 |
Changed in ubuntu-ui-toolkit: | |
status: | In Progress → Fix Committed |
Changed in ubuntu-ui-toolkit: | |
status: | Fix Committed → Fix Released |
Changed in ubuntu-ui-toolkit (Ubuntu): | |
status: | New → Fix Released |
Changed in ubuntu-ui-toolkit (Ubuntu RTM): | |
status: | New → Fix Released |
To post a comment you must log in.