mirror of
https://github.com/chshersh/github-tui.git
synced 2024-08-16 14:00:30 +03:00
Exit alt screen before quit
This commit is contained in:
parent
3ea427ead8
commit
7802849271
@ -18,7 +18,7 @@ let move_right model = model
|
||||
let update event (model: Model.t) =
|
||||
match event with
|
||||
(* if we press `q` or the escape key, we exit *)
|
||||
| Event.KeyDown (Key "q" | Escape) -> (model, Command.Quit)
|
||||
| Event.KeyDown (Key "q" | Escape) -> (model, Command.Seq [Command.Exit_alt_screen; Command.Quit])
|
||||
|
||||
(* if we press a digit, we switch to the corresponding tab *)
|
||||
| Event.KeyDown (Key "1") ->
|
||||
|
Loading…
Reference in New Issue
Block a user