Skip to content

Commit

Permalink
fix saving respone file task
Browse files Browse the repository at this point in the history
  • Loading branch information
abdfnx committed Dec 12, 2021
1 parent 1e189e3 commit 3da650d
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions core/layout/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,10 @@ func Layout() {
resto is a cli app can send pretty HTTP & API requests from your terminal.
Shortcuts:
- Ctrl+P: Open Renio Panel
- Ctrl+P: Open Resto Panel
- Ctrl+H: Open Help Guide
- Ctrl+S: Save Request Body
- Ctrl+Q: Quit
- Ctrl+Q: Quit
`

fmt.Fprintf(helpText, "%s ", help)
Expand Down Expand Up @@ -285,11 +285,7 @@ func Layout() {
if key == tcell.KeyEnter {
doneFunc(input.GetText())
fileNameInput.RemovePage("input")
}
})

input.SetDoneFunc(func(key tcell.Key) {
if key == tcell.KeyEsc {
} else if key == tcell.KeyEsc {
app.SetRoot(flex, true).SetFocus(requestForm)
}
})
Expand Down

0 comments on commit 3da650d

Please sign in to comment.