only exit app when prompt is empty, otherwise fallthrough, fix #5457
This commit is contained in:
parent
e8a20cfe9e
commit
cd3f2412e8
1 changed files with 6 additions and 2 deletions
|
|
@ -732,8 +732,12 @@ export function Prompt(props: PromptProps) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
if (keybind.match("app_exit", e)) {
|
if (keybind.match("app_exit", e)) {
|
||||||
await exit()
|
if (store.prompt.input === "") {
|
||||||
return
|
await exit()
|
||||||
|
// Don't preventDefault - let textarea potentially handle the event
|
||||||
|
e.preventDefault()
|
||||||
|
return
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if (e.name === "!" && input.visualCursor.offset === 0) {
|
if (e.name === "!" && input.visualCursor.offset === 0) {
|
||||||
setStore("mode", "shell")
|
setStore("mode", "shell")
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue