X-Git-Url: http://git.bytex64.net/?a=blobdiff_plain;f=plugins%2FVimish.cs;fp=plugins%2FVimish.cs;h=ad2a9e544655eed69742666c8be7568fa2069ae3;hb=7bf09cef03c7fd78e599039b14a29e8a3f3eed42;hp=bb56ed0f2fc7e7f6e6dc939a89b5a4ae98d677ea;hpb=126f2111e41f6b2595ffde1de6828ef12246e545;p=WebThing.git diff --git a/plugins/Vimish.cs b/plugins/Vimish.cs index bb56ed0..ad2a9e5 100644 --- a/plugins/Vimish.cs +++ b/plugins/Vimish.cs @@ -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(); }