From 0362f5d218bdf205d083d90f19e4e4911447168e Mon Sep 17 00:00:00 2001 From: sloumdrone Date: Sun, 8 Dec 2019 21:37:43 -0800 Subject: [PATCH] Adds vim navigation keys --- gui.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gui.py b/gui.py index e30c2a1..23aa86d 100644 --- a/gui.py +++ b/gui.py @@ -116,6 +116,10 @@ class GUI: self.site_display.bind("", lambda event: self.site_display.yview_scroll(-1, 'units')) self.site_display.bind("", lambda event: self.site_display.yview_scroll(1, 'units')) self.site_display.bind("", lambda event: self.site_display.focus_set()) + self.site_display.bind("k", lambda event: self.site_display.yview_scroll(-1, 'units')) + self.site_display.bind("j", lambda event: self.site_display.yview_scroll(1, 'units')) + self.site_display.bind("h", self.go_back) + self.site_display.bind("l", self.go_forward) self.entry_url.bind("", lambda event: self.entry_url.focus_set()) self.root.protocol('WM_DELETE_WINDOW', self.close_window) self.btn_favorite.bind("", self.add_to_favorites)