Skip to content

Commit

Permalink
Enable to quit with 'q'
Browse files Browse the repository at this point in the history
  • Loading branch information
nakabonne committed Oct 25, 2020
1 parent abaaf8f commit a30c166
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gui/keybinds.go
Expand Up @@ -34,7 +34,7 @@ func keybinds(ctx context.Context, cancel context.CancelFunc, c *container.Conta
navigateFunc := navigateCharts(funcs)
return func(k *terminalapi.Keyboard) {
switch k.Key {
case keyboard.KeyCtrlC: // Quit
case keyboard.KeyCtrlC, 'q': // Quit
cancel()
case keyboard.KeyEnter: // Attack
attack(ctx, dr, targetURL, opts)
Expand Down
2 changes: 1 addition & 1 deletion gui/widgets.go
Expand Up @@ -110,7 +110,7 @@ func newWidgets(targetURL string, opts *attacker.Options) (*widgets, error) {
return nil, err
}

navi, err := newText("Ctrl-C: quit, Enter: attack, l: next chart, h: prev chart")
navi, err := newText("q: quit, Enter: attack, l: next chart, h: prev chart")
if err != nil {
return nil, err
}
Expand Down

0 comments on commit a30c166

Please sign in to comment.