We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 30c9414 commit 4b9147bCopy full SHA for 4b9147b
webviews/createPullRequestViewNew/app.tsx
@@ -173,8 +173,15 @@ export function main() {
173
}
174
175
function openDescriptionSettings(event: React.MouseEvent | React.KeyboardEvent): void {
176
- event.preventDefault();
177
- ctx.postMessage({ command: 'pr.openDescriptionSettings' });
+ if (event.type === 'keydown') {
+ const keyEvent = event as React.KeyboardEvent;
178
+ if (keyEvent.key === 'Enter' || keyEvent.key === ' ') {
179
+ event.preventDefault();
180
+ ctx.postMessage({ command: 'pr.openDescriptionSettings' });
181
+ }
182
+ } else {
183
184
185
186
187
async function generateTitle(useCopilot?: boolean) {
0 commit comments