4 using bytex64.WebThing;
6 public class FFNav : WebThingPlugin {
9 public override void Init(WebThing wt) {
12 wt.Window.KeyPressEvent += Window_KeyPress;
15 public override void InitWebView(WebView wv) {
16 wv.KeyPressEvent += WebView_KeyPress;
19 private void Window_KeyPress(object o, KeyPressEventArgs e) {
20 if ((e.Event.State & Gdk.ModifierType.ControlMask) != 0) {
24 wt.Tabs.CurrentPage = wt.Tabs.NPages - 1;
33 private void WebView_KeyPress(object o, KeyPressEventArgs e) {
34 WebView wv = (WebView) o;
35 if ((e.Event.State & Gdk.ModifierType.Mod1Mask) != 0) {
44 } else if ((e.Event.State & Gdk.ModifierType.ControlMask) != 0) {
46 case Gdk.Key.ISO_Left_Tab:
47 if (wt.Tabs.CurrentPage == 0)
48 wt.Tabs.CurrentPage = wt.Tabs.NPages - 1;
53 if (wt.Tabs.CurrentPage == wt.Tabs.NPages - 1)
54 wt.Tabs.CurrentPage = 0;
61 case Gdk.Key.BackSpace: