back/forward

pull/6/head
dvkt 5 years ago
parent 2880184772
commit ceabc62137

@ -105,6 +105,20 @@ impl UI {
self.open(&url);
Action::None
}
Action::Back => {
if self.page > 0 {
self.dirty = true;
self.page -= 1;
}
Action::None
}
Action::Forward => {
if self.page < self.pages.len() - 1 {
self.dirty = true;
self.page += 1;
}
Action::None
}
a => a,
}
}

Loading…
Cancel
Save