Getting useful...
[WebThing.git] / plugins / Vimish.cs
index bb56ed0..ad2a9e5 100644 (file)
@@ -37,6 +37,9 @@ public class Plugin {
                case Gdk.Key.o:
                        CommandStart("open ");
                        break;
+               case Gdk.Key.r:
+                       wt.WebView.Reload();
+                       break;
                case Gdk.Key.t:
                        CommandStart("tabopen ");
                        break;
@@ -46,6 +49,9 @@ public class Plugin {
                case Gdk.Key.colon:
                        CommandlineShow();
                        break;
+               case Gdk.Key.Escape:
+                       wt.WebView.ExecuteScript("document.activeElement.blur()");
+                       break;
                }
        }
 
@@ -71,10 +77,12 @@ public class Plugin {
                switch(args[0]) {
                case "open":
                        if (args.Length < 2) return;
-                       wt.WebView.Open(args[1]);
+                       wt.OpenUri(args[1]);
+                       break;
+               case "q":
+                       wt.Quit();
                        break;
                }
-               commandline.Text = "";
                CommandlineHide();
        }