Skip to content

Commit

Permalink
Also allow Escape to quit Nottui default apps
Browse files Browse the repository at this point in the history
  • Loading branch information
let-def committed Sep 23, 2020
1 parent a56a8c0 commit 0e35464
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/nottui/nottui.ml
Original file line number Diff line number Diff line change
Expand Up @@ -842,8 +842,9 @@ struct
in
let t =
t |> Lwd.map (Ui.event_filter (function
| `Key (`ASCII 'Q', [`Ctrl]) -> Lwd.set quit true; `Handled
| _ -> `Unhandled
| `Key (`ASCII 'Q', [`Ctrl]) | `Key (`Escape, []) ->
Lwd.set quit true; `Handled
| _ -> `Unhandled
))
in
match term with
Expand Down

0 comments on commit 0e35464

Please sign in to comment.