Skip to content

Commit

Permalink
fix: CTRL+K (jump to) modal is case sensitive
Browse files Browse the repository at this point in the history
make the ChannelPicker/StatusSearchListPopup search case insensitive

Fixes #8460
  • Loading branch information
caybro committed Dec 7, 2022
1 parent 9391cab commit a85a5ba
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ui/app/mainui/AppMain.qml
Original file line number Diff line number Diff line change
Expand Up @@ -1211,7 +1211,8 @@ Item {
property var modelData
property bool isCurrentItem: true
function filterAccepts(searchText) {
return title.includes(searchText)
const lowerCaseSearchText = searchText.toLowerCase()
return title.toLowerCase().includes(lowerCaseSearchText) || label.toLowerCase().includes(lowerCaseSearchText)
}

title: modelData ? modelData.name : ""
Expand Down

0 comments on commit a85a5ba

Please sign in to comment.