Skip to content

Commit

Permalink
Prevent crash when keys pressed during boot screen
Browse files Browse the repository at this point in the history
  • Loading branch information
tombh committed Jun 5, 2018
1 parent b671a6c commit 12c8a58
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions interfacer/src/browsh/tty.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,10 @@ func readStdin() {
}

func handleUserKeyPress(ev *tcell.EventKey) {
if CurrentTab == nil {
if ev.Key() == tcell.KeyCtrlQ { quitBrowsh() }
return
}
switch ev.Key() {
case tcell.KeyCtrlQ:
quitBrowsh()
Expand Down

0 comments on commit 12c8a58

Please sign in to comment.