fix: CTRL+K (jump to) modal is case sensitive

make the ChannelPicker/StatusSearchListPopup search case insensitive

Fixes #8460
This commit is contained in:
Lukáš Tinkl 2022-12-07 16:14:48 +01:00 committed by Lukáš Tinkl
parent f7704c719a
commit c32dfa48be

View File

@ -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 : ""