@@ -11,6 +11,7 @@ import { ErrorAlert } from "components/Alert/ErrorAlert";
1111import { Button } from "components/Button/Button" ;
1212import { ExternalImage } from "components/ExternalImage/ExternalImage" ;
1313import { displayError , displaySuccess } from "components/GlobalSnackbar/utils" ;
14+ import { Kbd , KbdGroup } from "components/Kbd/Kbd" ;
1415import { Link } from "components/Link/Link" ;
1516import {
1617 Select ,
@@ -34,6 +35,7 @@ import TextareaAutosize, {
3435 type TextareaAutosizeProps ,
3536} from "react-textarea-autosize" ;
3637import { docs } from "utils/docs" ;
38+ import { getOSKey } from "utils/platform" ;
3739import { PromptSelectTrigger } from "./PromptSelectTrigger" ;
3840import { TemplateVersionSelect } from "./TemplateVersionSelect" ;
3941
@@ -373,23 +375,34 @@ const CreateTaskForm: FC<CreateTaskFormProps> = ({ templates, onSuccess }) => {
373375 />
374376 ) }
375377
376- < Button
377- size = "icon"
378- type = "submit"
379- disabled = { prompt . trim ( ) . length === 0 || isMissingExternalAuth }
380- className = "rounded-full disabled:bg-surface-invert-primary disabled:opacity-70"
381- >
382- < Spinner
383- loading = {
384- isLoadingExternalAuth ||
385- isPollingExternalAuth ||
386- createTaskMutation . isPending
387- }
388- >
389- < ArrowUpIcon />
390- </ Spinner >
391- < span className = "sr-only" > Run task</ span >
392- </ Button >
378+ < Tooltip >
379+ < TooltipTrigger asChild >
380+ < Button
381+ size = "icon"
382+ type = "submit"
383+ disabled = { prompt . trim ( ) . length === 0 || isMissingExternalAuth }
384+ className = "rounded-full disabled:bg-surface-invert-primary disabled:opacity-70"
385+ >
386+ < Spinner
387+ loading = {
388+ isLoadingExternalAuth ||
389+ isPollingExternalAuth ||
390+ createTaskMutation . isPending
391+ }
392+ >
393+ < ArrowUpIcon />
394+ </ Spinner >
395+ < span className = "sr-only" > Run task</ span >
396+ </ Button >
397+ </ TooltipTrigger >
398+ < TooltipContent align = "end" >
399+ < KbdGroup >
400+ < Kbd > { getOSKey ( ) } </ Kbd >
401+ < span > +</ span >
402+ < Kbd > Enter</ Kbd >
403+ </ KbdGroup >
404+ </ TooltipContent >
405+ </ Tooltip >
393406 </ div >
394407 </ div >
395408 </ fieldset >
0 commit comments