mirror of
https://github.com/Athou/commafeed.git
synced 2026-03-21 21:37:29 +00:00
Maint: Show Cmd + K for macOS users
This commit is contained in:
@@ -12,6 +12,10 @@ export interface TreeSearchProps {
|
|||||||
feeds: Subscription[]
|
feeds: Subscription[]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function isMacOS() {
|
||||||
|
return navigator.platform.toUpperCase().includes("MAC")
|
||||||
|
}
|
||||||
|
|
||||||
export function TreeSearch(props: TreeSearchProps) {
|
export function TreeSearch(props: TreeSearchProps) {
|
||||||
const dispatch = useAppDispatch()
|
const dispatch = useAppDispatch()
|
||||||
|
|
||||||
@@ -27,7 +31,7 @@ export function TreeSearch(props: TreeSearchProps) {
|
|||||||
const searchIcon = <TbSearch size={18} />
|
const searchIcon = <TbSearch size={18} />
|
||||||
const rightSection = (
|
const rightSection = (
|
||||||
<Center style={{ cursor: "pointer" }} onClick={() => spotlight.open()}>
|
<Center style={{ cursor: "pointer" }} onClick={() => spotlight.open()}>
|
||||||
<Kbd>Ctrl</Kbd>
|
<Kbd>{isMacOS() ? "Cmd" : "Ctrl"}</Kbd>
|
||||||
<Box mx={5}>+</Box>
|
<Box mx={5}>+</Box>
|
||||||
<Kbd>K</Kbd>
|
<Kbd>K</Kbd>
|
||||||
</Center>
|
</Center>
|
||||||
|
|||||||
Reference in New Issue
Block a user