Allow apps to return a command when context drawer is toggled

This commit is contained in:
Jeremy Soller 2024-01-09 11:45:00 -07:00
parent 5b2ac941c3
commit 68c760e652
2 changed files with 6 additions and 0 deletions

View file

@ -440,6 +440,11 @@ where
None
}
// Called when context drawer is toggled
fn on_context_drawer(&mut self) -> iced::Command<Message<Self::Message>> {
iced::Command::none()
}
/// Called when the escape key is pressed.
fn on_escape(&mut self) -> iced::Command<Message<Self::Message>> {
iced::Command::none()