mirror of
https://github.com/Microsoft/vscode
synced 2024-08-27 04:49:35 +00:00
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:
parent
eefab1453e
commit
4b0d4241ec
|
@ -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 = () => {
|
||||
|
|
Loading…
Reference in a new issue