F5 fully reloads page

pull/22/head
chris west 4 years ago
parent 2fdb64c49f
commit 2da3a20c4e

@ -604,7 +604,12 @@ impl UI {
}
}
// F5 = refresh
Action::Keypress(Key::F(5)) => self.dirty = true,
Action::Keypress(Key::F(5)) => {
if let Some(view) = self.views.get(self.focused) {
let current_url = view.url().to_owned();
self.open(&current_url, &current_url)?
}
}
Action::Keypress(Key::Left) | Action::Keypress(Key::Backspace) => {
if self.focused > 0 {
self.dirty = true;

Loading…
Cancel
Save