Closed
Description
Is your feature request related to a problem? Please describe.
Many CLIs (anecdotally, all the ones I use) support using <Esc>
to exit, and as such, it's become muscle memory for me. However, only <C-c>
is built in as a way to cancel, so I'm currently resorting to patch-package
to add it in.
Figured I'd at least ask before I continued w/ patching.
Describe the solution you'd like
Ideally, just adding <Esc>
alongside <C-c>
:
}
- if (char === '\x03') {
+ if (char === '\x03' || key.name === 'escape') {
this.state = 'cancel';
}
Describe alternatives you've considered
N/A