diff --git a/src/renderer/src/components/TaskPage.tsx b/src/renderer/src/components/TaskPage.tsx
index edfc5ddf2..a2c5aed2f 100644
--- a/src/renderer/src/components/TaskPage.tsx
+++ b/src/renderer/src/components/TaskPage.tsx
@@ -1090,6 +1090,12 @@ export default function TaskPage(): React.JSX.Element {
autoFocus
value={newIssueTitle}
onChange={(e) => setNewIssueTitle(e.target.value)}
+ onKeyDown={(e) => {
+ if (e.key === 'Enter' && !e.nativeEvent.isComposing) {
+ e.preventDefault()
+ void handleCreateNewIssue()
+ }
+ }}
placeholder="Short summary"
disabled={newIssueSubmitting}
/>
diff --git a/src/renderer/src/components/settings/SshTargetForm.tsx b/src/renderer/src/components/settings/SshTargetForm.tsx
index 25c5d28c9..830759944 100644
--- a/src/renderer/src/components/settings/SshTargetForm.tsx
+++ b/src/renderer/src/components/settings/SshTargetForm.tsx
@@ -41,7 +41,13 @@ export function SshTargetForm({
onCancel
}: SshTargetFormProps): React.JSX.Element {
return (
-
+
)
}
diff --git a/src/renderer/src/components/sidebar/AddRepoSteps.tsx b/src/renderer/src/components/sidebar/AddRepoSteps.tsx
index a99c47e7d..154ec486b 100644
--- a/src/renderer/src/components/sidebar/AddRepoSteps.tsx
+++ b/src/renderer/src/components/sidebar/AddRepoSteps.tsx
@@ -242,6 +242,14 @@ export function RemoteStep({
onRemotePathChange(e.target.value)}
+ onKeyDown={(e) => {
+ if (e.key === 'Enter' && !e.nativeEvent.isComposing) {
+ e.preventDefault()
+ if (selectedTargetId && remotePath.trim() && !isAddingRemote) {
+ onAdd()
+ }
+ }
+ }}
placeholder="/home/user/project"
className="h-8 text-xs flex-1"
disabled={isAddingRemote}
@@ -297,6 +305,15 @@ export function CloneStep({
onPickDestination,
onClone
}: CloneStepProps): React.JSX.Element {
+ const canClone = !!cloneUrl.trim() && !!cloneDestination.trim() && !isCloning
+ const handleKeyDown = (e: React.KeyboardEvent): void => {
+ if (e.key === 'Enter' && !e.nativeEvent.isComposing) {
+ e.preventDefault()
+ if (canClone) {
+ onClone()
+ }
+ }
+ }
return (
<>
@@ -310,6 +327,7 @@ export function CloneStep({
onUrlChange(e.target.value)}
+ onKeyDown={handleKeyDown}
placeholder="https://github.com/user/repo.git"
className="h-8 text-xs"
disabled={isCloning}
@@ -323,6 +341,7 @@ export function CloneStep({
onDestChange(e.target.value)}
+ onKeyDown={handleKeyDown}
placeholder="/path/to/destination"
className="h-8 text-xs flex-1"
disabled={isCloning}