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 69112d1
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,11 @@ export class QuickCommandFrontendContribution implements CommandContribution, Ke
commands.registerCommand(CLEAR_COMMAND_HISTORY, {
execute: () => commands.clearCommandHistory(),
});
commands.registerCommand({ id: 'workbench.action.closeQuickOpen' }, {
execute: () => {
this.quickInputService?.hide();
}
});
}

registerMenus(menus: MenuModelRegistry): void {
Expand All @@ -56,5 +61,10 @@ export class QuickCommandFrontendContribution implements CommandContribution, Ke
command: quickCommand.id,
keybinding: 'ctrlcmd+shift+p'
});
keybindings.registerKeybinding({
command: 'workbench.action.closeQuickOpen',
keybinding: 'esc',
when: 'inQuickOpen'
});
}
}

0 comments on commit 69112d1

Please sign in to comment.