Skip to content

Commit

Permalink
Pass focus back to input (fixes #72853)
Browse files Browse the repository at this point in the history
  • Loading branch information
chrmarti committed May 28, 2019
1 parent 5d554ef commit 6cdbecb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/vs/workbench/browser/parts/quickinput/quickInput.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1128,6 +1128,9 @@ export class QuickInputService extends Component implements IQuickInputService {
this.hide(true);
}
}));
this._register(dom.addDisposableListener(container, dom.EventType.FOCUS, (e: FocusEvent) => {
inputBox.setFocus();
}));
this._register(dom.addDisposableListener(container, dom.EventType.KEY_DOWN, (e: KeyboardEvent) => {
const event = new StandardKeyboardEvent(e);
switch (event.keyCode) {
Expand Down

0 comments on commit 6cdbecb

Please sign in to comment.