diff options
author | Jeremie Laval <jeremie.laval@gmail.com> | 2012-03-12 22:55:26 +0400 |
---|---|---|
committer | Jeremie Laval <jeremie.laval@gmail.com> | 2012-03-12 22:57:48 +0400 |
commit | 182d6fbfcc02a128081623b120262b66c5725907 (patch) | |
tree | 3d0cb260bf77c451423f1c00070bc19e59933f7d /AppDelegate.cs | |
parent | e0e1bdc47bf2dba28baad64318d8cd561ce9eb5c (diff) |
[macdoc] Add search and find shortcuts and implementation
Diffstat (limited to 'AppDelegate.cs')
-rw-r--r-- | AppDelegate.cs | 11 |
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 (); |