when clicking intio view zone only refocus widget when having lost widget focus (#186484)

fixes https://github.com/microsoft/vscode/issues/186309
This commit is contained in:
Johannes Rieken 2023-06-28 14:31:32 +02:00 committed by GitHub
parent eefab1453e
commit 4b0d4241ec
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -719,7 +719,11 @@ export class InlineChatZoneWidget extends ZoneWidget {
this.create();
this._disposables.add(addDisposableListener(this.domNode, 'click', e => this.widget.focus()));
this._disposables.add(addDisposableListener(this.domNode, 'click', e => {
if (!this.widget.hasFocus()) {
this.widget.focus();
}
}));
// todo@jrieken listen ONLY when showing
const updateCursorIsAboveContextKey = () => {