Close dialog on escape

This commit is contained in:
Josh Megnauth 2024-02-29 01:01:02 -05:00 committed by Jeremy Soller
parent 197398fe4e
commit 9759f3626f

View file

@ -429,6 +429,10 @@ impl Application for App {
Command::none()
}
fn on_escape(&mut self) -> Command<Message> {
self.update(Message::Cancel)
}
/// Handle application events here.
fn update(&mut self, message: Message) -> Command<Message> {
match message {