android: fix back button

Fixes: https://github.com/damus-io/notedeck/issues/972
Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
William Casarin
2025-07-17 09:18:20 -07:00
parent db6f02084d
commit c0c2120f74
3 changed files with 24 additions and 19 deletions

View File

@@ -75,6 +75,11 @@ fn handle_key_events(input: &egui::InputState, columns: &mut Columns) {
egui::Key::L => {
columns.select_left();
}
egui::Key::BrowserBack | egui::Key::Escape => {
if let Some(column) = columns.selected_mut() {
column.router_mut().go_back();
}
}
_ => {}
}
}