mouse navigation

This commit is contained in:
Artem Anufrij 2018-02-11 13:07:11 +01:00
parent eaca3ea34d
commit 0c556a6ead
2 changed files with 9 additions and 2 deletions

View file

@ -32,11 +32,12 @@
</screenshot>
</screenshots>
<releases>
<release version="0.2.7" date="2018-02-15">
<release version="0.2.7" date="2018-02-12">
<description>
<p>Improved:</p>
<ul>
<li>favicon fetching</li>
</ul>
</description>
</release>

View file

@ -137,7 +137,13 @@ namespace Webpin.Widgets {
});
web_view.button_press_event.connect ((event) => {
stdout.printf ("BUTTON %u\n", event.button);
if (event.button == 8) {
web_view.go_back ();
return true;
} else if (event.button == 9) {
web_view.go_forward ();
return true;
}
return base.button_press_event (event);
});
}