1
0

Add shortcut hint for command switcher

This commit is contained in:
Ben Schumacher 2022-09-24 17:01:16 +00:00
parent b35c60ee60
commit dae302b2cd

View File

@ -7,6 +7,7 @@ import {
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
import { useEffect, useState } from "react";
import { Notification } from "../types";
import { isMacLike } from "../../common/util";
function prettyName(s: string | undefined): string {
if (!s) {
@ -40,6 +41,8 @@ export function TopBar({
}) {
const [theme, setTheme] = useState<string>(localStorage.theme ?? "light");
const isMac = isMacLike();
return (
<div id="sb-top" onClick={onClick}>
{lhs}
@ -83,7 +86,7 @@ export function TopBar({
onActionClick();
e.stopPropagation();
}}
title="Open the command palette"
title={"Open the command palette (" + (isMac ? "Cmd" : "Ctrl") + "+/)"}
>
<FontAwesomeIcon icon={faRunning} />
</button>