Skip to content

Commit

Permalink
quick-open: Esc closes inputbox when focus out.
Browse files Browse the repository at this point in the history
Closes: 6773

Signed-Off-By: FernandoAscencio <fernando.ascencio.cama@ericsson.com>
  • Loading branch information
FernandoAscencio committed Apr 25, 2023
1 parent a0e45ce commit b70c268
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/monaco/src/browser/monaco-quick-input-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ export class MonacoQuickInputImplementation implements IQuickInputService {
// Hook into the theming service of Monaco to ensure that the updates are ready.
StandaloneServices.get(IStandaloneThemeService).onDidColorThemeChange(() => this.controller.applyStyles(this.getStyles()));
window.addEventListener('resize', () => this.updateLayout());
window.addEventListener('keydown', event => { if (event.code === 'Escape' && this.inQuickOpen.get()) { this.controller.hide(); } });
}

setContextKey(key: string | undefined): void {
Expand Down

0 comments on commit b70c268

Please sign in to comment.