Browse Source

bind mouse-back to go_back

debug-epoch
Klaus Rennecke 10 months ago
parent
commit
ddf41364a9
1 changed files with 12 additions and 0 deletions
  1. 12
    0
      src/main.rs

+ 12
- 0
src/main.rs View File

@@ -88,6 +88,18 @@ fn main() {
88 88
         });
89 89
     }
90 90
 
91
+    // Bind Mouse-Back
92
+    {
93
+        let gui_clone = gui.clone();
94
+        let content_view = gui.content_view();
95
+        content_view.connect_button_press_event(move |_, event| {
96
+            if event.get_button() == 8 {
97
+                go_back(&gui_clone);
98
+            }
99
+            Inhibit(false)
100
+        });
101
+    }
102
+
91 103
     // Use passed URL or settings start_url
92 104
     let args: Vec<String> = env::args().collect();
93 105
     match args.len() {

Loading…
Cancel
Save