browser: press r to reload page

exec
dece 3 years ago
parent 8830465fbf
commit 34f7ef0a95

@ -74,6 +74,8 @@ class Browser:
running = False
elif char == ord(":"):
self.quick_command("")
elif char == ord("r"):
self.reload_page()
elif char == ord("s"):
self.set_status(f"h {self.h} w {self.w}")
elif char == ord("h"):
@ -413,6 +415,10 @@ class Browser:
if self.page.scroll_h(by_columns, self.w):
self.refresh_page()
def reload_page(self):
if self.current_url:
self.open_gemini_url(self.current_url, history=False)
def go_back(self):
"""Go back in history if possible."""
if self.history.has_links():

Loading…
Cancel
Save