diff --git a/commafeed-client/src/components/sidebar/TreeSearch.tsx b/commafeed-client/src/components/sidebar/TreeSearch.tsx index 72368c6b..6a24d069 100644 --- a/commafeed-client/src/components/sidebar/TreeSearch.tsx +++ b/commafeed-client/src/components/sidebar/TreeSearch.tsx @@ -12,6 +12,10 @@ export interface TreeSearchProps { feeds: Subscription[] } +function isMacOS() { + return navigator.platform.toUpperCase().includes("MAC") +} + export function TreeSearch(props: TreeSearchProps) { const dispatch = useAppDispatch() @@ -27,7 +31,7 @@ export function TreeSearch(props: TreeSearchProps) { const searchIcon = const rightSection = (
spotlight.open()}> - Ctrl + {isMacOS() ? "Cmd" : "Ctrl"} + K