diff --git a/lib/nottui/nottui.ml b/lib/nottui/nottui.ml index c575727..bb51221 100644 --- a/lib/nottui/nottui.ml +++ b/lib/nottui/nottui.ml @@ -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