Skip to content

Commit 9b052a2

Browse files
fix(web): show the platform modifier in the send tooltip (#22436)
1 parent 1f8530e commit 9b052a2

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎apps/web/src/components/chat/ComposerPrimaryActions.tsx‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { CornerUpRight, ListPlus } from "lucide";
44
import { MorphIcon } from "~/components/MorphIcon";
55
import { useEnvironmentIdentificationMode } from "~/hooks/useSettings";
66
import { formatContextWindowTokens } from "~/lib/contextWindow";
7-
import { cn } from "~/lib/utils";
7+
import { cn, isMacPlatform } from "~/lib/utils";
88
import { useShortcutModifierState } from "../../shortcutModifierState";
99
import { StageBackdropButtonArt, useSidebarStageBackdropVariant } from "../SidebarStageBackdrop";
1010
import { Button } from "../ui/button";
@@ -297,7 +297,7 @@ export const ComposerPrimaryActions = memo(function ComposerPrimaryActions({
297297
(compactsBeforeSend
298298
? `Summarize ${compactTokens} tokens of history, then send`
299299
: isRunning && !isEditingQueuedMessage && canSteer
300-
? `Click to ${followUpBehavior}, Ctrl/⌘-click${alternateShortcutLabel ? ` or ${alternateShortcutLabel}` : ""} to ${alternateAction}`
300+
? `Click to ${followUpBehavior}, ${isMacPlatform(navigator.platform) ? "⌘" : "Ctrl"}-click${alternateShortcutLabel ? ` or ${alternateShortcutLabel}` : ""} to ${alternateAction}`
301301
: submitLabel);
302302

303303
const sendButton = (

0 commit comments

Comments
 (0)