diff --git a/cocoa/base/ResultWindow.h b/cocoa/base/ResultWindow.h index 33f85a1e..28d6041b 100644 --- a/cocoa/base/ResultWindow.h +++ b/cocoa/base/ResultWindow.h @@ -53,6 +53,7 @@ http://www.hardcoded.net/licenses/bsd_license - (IBAction)trashMarked:(id)sender; - (IBAction)exportToXHTML:(id)sender; - (IBAction)filter:(id)sender; +- (IBAction)focusOnFilterField:(id)sender; - (IBAction)ignoreSelected:(id)sender; - (IBAction)invokeCustomCommand:(id)sender; - (IBAction)markAll:(id)sender; diff --git a/cocoa/base/ResultWindow.m b/cocoa/base/ResultWindow.m index beef0980..c0a0e6d8 100644 --- a/cocoa/base/ResultWindow.m +++ b/cocoa/base/ResultWindow.m @@ -154,6 +154,11 @@ http://www.hardcoded.net/licenses/bsd_license [model applyFilter:[filterField stringValue]]; } +- (IBAction)focusOnFilterField:(id)sender +{ + [[self window] makeFirstResponder:filterField]; +} + - (IBAction)ignoreSelected:(id)sender { [model addSelectedToIgnoreList]; diff --git a/cocoa/base/en.lproj/MainMenu.xib b/cocoa/base/en.lproj/MainMenu.xib index f34a1cbb..38644ced 100644 --- a/cocoa/base/en.lproj/MainMenu.xib +++ b/cocoa/base/en.lproj/MainMenu.xib @@ -294,6 +294,26 @@ + + + YES + YES + + + 1048576 + 2147483647 + + + + + + Filter Results... + f + 1572864 + 2147483647 + + + @@ -947,6 +967,14 @@ 1286 + + + focusOnFilterField: + + + + 1289 + delegate @@ -1427,6 +1455,8 @@ + + @@ -1560,6 +1590,16 @@ + + 1287 + + + + + 1288 + + + @@ -1586,6 +1626,8 @@ com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin @@ -1644,7 +1686,7 @@ - 1286 + 1289 @@ -1881,6 +1923,7 @@ id id id + id id id id @@ -1923,6 +1966,10 @@ filter: id + + focusOnFilterField: + id + ignoreSelected: id @@ -2088,18 +2135,10 @@ 0 IBCocoaFramework - - com.apple.InterfaceBuilder.CocoaPlugin.macosx - - com.apple.InterfaceBuilder.CocoaPlugin.macosx - - com.apple.InterfaceBuilder.CocoaPlugin.InterfaceBuilder3 - - YES 3