Skip to content

Commit edb8128

Browse files
authored
don't add extra space when accepting implicit context (microsoft#250164)
1 parent abe25af commit edb8128

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/vs/workbench/contrib/chat/browser/attachments/implicitContextAttachment.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,8 @@ export class ImplicitContextAttachmentWidget extends Disposable {
9797
this.renderDisposables.add(dom.addDisposableListener(this.domNode, dom.EventType.KEY_DOWN, e => {
9898
const event = new StandardKeyboardEvent(e);
9999
if (event.equals(KeyCode.Enter) || event.equals(KeyCode.Space)) {
100+
e.preventDefault();
101+
e.stopPropagation();
100102
this.convertToRegularAttachment();
101103
}
102104
}));

0 commit comments

Comments
 (0)