Skip to content

Commit

Permalink
Added Ctrl+Q shortcut for quitting
Browse files Browse the repository at this point in the history
  • Loading branch information
mrusme committed Apr 4, 2021
1 parent a598222 commit db431cb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tui/tui.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,8 @@ func TUI(tuiCore TUICore) {
if tuiCore.ExitInsertMode(false) == true {
return nil
}
case tcell.KeyCtrlQ:
tuiCore.App.Stop()
}

return event
Expand Down

0 comments on commit db431cb

Please sign in to comment.