-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
quick-open: Esc
closes inputbox when focus out.
#12446
quick-open: Esc
closes inputbox when focus out.
#12446
Conversation
b70c268
to
69112d1
Compare
packages/core/src/browser/quick-input/quick-command-frontend-contribution.ts
Show resolved
Hide resolved
packages/core/src/browser/quick-input/quick-command-frontend-contribution.ts
Outdated
Show resolved
Hide resolved
@@ -38,6 +38,9 @@ export class QuickCommandFrontendContribution implements CommandContribution, Ke | |||
commands.registerCommand(CLEAR_COMMAND_HISTORY, { | |||
execute: () => commands.clearCommandHistory(), | |||
}); | |||
commands.registerCommand({ id: 'workbench.action.closeQuickOpen' }, { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
minor - refactor the command to a constant (since it is referenced multiple times)?
export const CLOSE_QUICK_OPEN: Command = {
id: 'workbench.action.closeQuickOpen'
}
It can live under packages/core/src/browser/quick-input/quick-command-service.ts
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Got it. I'll squash the commits while I am at it.
9f072e9
to
5acf720
Compare
Closes: 6773 Signed-Off-By: FernandoAscencio <fernando.ascencio.cama@ericsson.com> Co-Authored-By: vince-fugnitto <vincent.fugnitto@ericsson.com>
5acf720
to
d61114d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍 Thanks for making the updates!
What it does
Closes: #6773
When notifications are showing the
esc
key will close those first before closing the quick input box. This behavior is consistent with VS Code.How to test
esc
keyReview checklist
Reminder for reviewers