Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/xamarin/macdoc.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremie Laval <jeremie.laval@gmail.com>2012-03-12 22:55:26 +0400
committerJeremie Laval <jeremie.laval@gmail.com>2012-03-12 22:57:48 +0400
commit182d6fbfcc02a128081623b120262b66c5725907 (patch)
tree3d0cb260bf77c451423f1c00070bc19e59933f7d /AppDelegate.cs
parente0e1bdc47bf2dba28baad64318d8cd561ce9eb5c (diff)
[macdoc] Add search and find shortcuts and implementation
Diffstat (limited to 'AppDelegate.cs')
-rw-r--r--AppDelegate.cs11
1 files changed, 11 insertions, 0 deletions
diff --git a/AppDelegate.cs b/AppDelegate.cs
index 167bc5d..dfb04ee 100644
--- a/AppDelegate.cs
+++ b/AppDelegate.cs
@@ -186,6 +186,17 @@ namespace macdoc
controller.CurrentDocument.PrintDocument (sender);
}
+ partial void HandleFind (NSMenuItem sender)
+ {
+ controller.CurrentMyDocument.MainWebView.PerformFindPanelAction (sender);
+ }
+
+ partial void HandleSearch (NSObject sender)
+ {
+ var searchField = controller.CurrentMyDocument.WindowForSheet.Toolbar.VisibleItems.Last ().View;
+ controller.CurrentDocument.WindowForSheet.MakeFirstResponder (searchField);
+ }
+
public override void WillTerminate (NSNotification notification)
{
BookmarkManager.SaveBookmarks ();