Skip to content

Commit 8692e74

Browse files
committed
Add keyboard shortcut
1 parent 87b4992 commit 8692e74

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

Core/Sources/SuggestionWidget/SuggestionPanelContent/PromptToCodePanel.swift

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,10 @@ struct PromptToCodePanel: View {
8888
Button(action: {
8989
provider.acceptSuggestion()
9090
}) {
91-
Text("Accept")
92-
}.buttonStyle(CommandButtonStyle(color: .indigo))
91+
Text("Accept(⌘ + ⏎)")
92+
}
93+
.buttonStyle(CommandButtonStyle(color: .indigo))
94+
.keyboardShortcut(KeyEquivalent.return, modifiers: [.command])
9395
}
9496
}
9597
.padding(8)

0 commit comments

Comments
 (0)