1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-06-07 19:59:14 -04:00

fix(keybinds): guard missing fields in cheatsheet search filter

Fixes #2116
This commit is contained in:
purian23
2026-06-03 20:06:14 -04:00
parent 6e7aca8b15
commit 59431869dc
+4 -4
View File
@@ -81,7 +81,7 @@ DankModal {
StyledText { StyledText {
Layout.alignment: Qt.AlignLeft Layout.alignment: Qt.AlignLeft
text: KeybindsService.cheatsheet.title || i18n("Keybinds") text: KeybindsService.cheatsheet.title || I18n.tr("Keybinds")
font.pixelSize: Theme.fontSizeLarge font.pixelSize: Theme.fontSizeLarge
font.weight: Font.Bold font.weight: Font.Bold
color: Theme.primary color: Theme.primary
@@ -133,9 +133,9 @@ DankModal {
let hasSubcats = false; let hasSubcats = false;
for (let i = 0; i < binds.length; i++) { for (let i = 0; i < binds.length; i++) {
const bind = binds[i]; const bind = binds[i];
const keyLower = bind.key.toLowerCase(); const keyLower = (bind.key || "").toLowerCase();
const descLower = bind.desc.toLowerCase(); const descLower = (bind.desc || "").toLowerCase();
const actionLower = bind.action.toLowerCase(); const actionLower = (bind.action || "").toLowerCase();
if (bind.hideOnOverlay) if (bind.hideOnOverlay)
continue; continue;