From 59431869dc14ab1cb2d05bbbf81839d95e4724cd Mon Sep 17 00:00:00 2001 From: purian23 Date: Wed, 3 Jun 2026 20:06:14 -0400 Subject: [PATCH] fix(keybinds): guard missing fields in cheatsheet search filter Fixes #2116 --- quickshell/Modals/KeybindsModal.qml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/quickshell/Modals/KeybindsModal.qml b/quickshell/Modals/KeybindsModal.qml index d9acc2d5..e178f109 100644 --- a/quickshell/Modals/KeybindsModal.qml +++ b/quickshell/Modals/KeybindsModal.qml @@ -81,7 +81,7 @@ DankModal { StyledText { Layout.alignment: Qt.AlignLeft - text: KeybindsService.cheatsheet.title || i18n("Keybinds") + text: KeybindsService.cheatsheet.title || I18n.tr("Keybinds") font.pixelSize: Theme.fontSizeLarge font.weight: Font.Bold color: Theme.primary @@ -133,9 +133,9 @@ DankModal { let hasSubcats = false; for (let i = 0; i < binds.length; i++) { const bind = binds[i]; - const keyLower = bind.key.toLowerCase(); - const descLower = bind.desc.toLowerCase(); - const actionLower = bind.action.toLowerCase(); + const keyLower = (bind.key || "").toLowerCase(); + const descLower = (bind.desc || "").toLowerCase(); + const actionLower = (bind.action || "").toLowerCase(); if (bind.hideOnOverlay) continue;