router: fix router selection
Many times we get the router selection wrong. This fixes that Changelog-Fixed: Fix some routing issues when routing from the Chrome Fixes: https://github.com/damus-io/notedeck/issues/1024 Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
@@ -78,9 +78,7 @@ fn handle_key_events(input: &egui::InputState, columns: &mut Columns) {
|
||||
columns.select_left();
|
||||
}
|
||||
egui::Key::BrowserBack | egui::Key::Escape => {
|
||||
if let Some(column) = columns.selected_mut() {
|
||||
column.router_mut().go_back();
|
||||
}
|
||||
columns.get_selected_router().go_back();
|
||||
}
|
||||
_ => {}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user