TagSpaces is an offline, open source, document manager with tagging support
chore: fix issue in the adjust key binding function
Ilian Sapundshiev57f057dd8267
diff --git a/src/renderer/components/dialogs/KeyboardDialog.tsx b/src/renderer/components/dialogs/KeyboardDialog.tsxindex ce503787c..9ee54c7e5 100644--- a/src/renderer/components/dialogs/KeyboardDialog.tsx+++ b/src/renderer/components/dialogs/KeyboardDialog.tsx@@ -35,7 +35,7 @@ import { useTranslation } from 'react-i18next';import AppConfig from '-/AppConfig';export function adjustKeyBinding(keyBinding: string) {- if (!keyBinding) return '';+ if (!keyBinding || !keyBinding.length || keyBinding.length < 1) return '';let adjKB = keyBinding.toLowerCase();if (AppConfig.isMacLike) {adjKB = adjKB