Skip to content

Commit

Permalink
Fix issue 1918 for accessibility of screen readers.
Browse files Browse the repository at this point in the history
Signed-off-by: Adam Treat <treat.adam@gmail.com>
  • Loading branch information
manyoso committed Feb 7, 2024
1 parent 490404d commit 4258bb1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions gpt4all-chat/main.qml
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,7 @@ Window {
highlighted: comboBox.highlightedIndex === index
}
Accessible.role: Accessible.ComboBox
Accessible.name: qsTr("List of available models")
Accessible.name: comboBox.currentModelName
Accessible.description: qsTr("The top item is the current model")
onActivated: function (index) {
currentChat.stopGenerating()
Expand Down Expand Up @@ -957,7 +957,7 @@ Window {
}

Accessible.role: Accessible.Paragraph
Accessible.name: name
Accessible.name: text
Accessible.description: name === qsTr("Response: ") ? "The response by the model" : "The prompt by the user"

topPadding: 20
Expand Down
2 changes: 1 addition & 1 deletion gpt4all-chat/qml/ChatDrawer.qml
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ Drawer {
}
}
Accessible.role: Accessible.Button
Accessible.name: qsTr("Select the current chat")
Accessible.name: text
Accessible.description: qsTr("Select the current chat or edit the chat when in edit mode")
}
Row {
Expand Down

0 comments on commit 4258bb1

Please sign in to comment.