aboutsummaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
Diffstat (limited to 'Source')
-rw-r--r--Source/CustomQuery.m16
1 files changed, 16 insertions, 0 deletions
diff --git a/Source/CustomQuery.m b/Source/CustomQuery.m
index 48de864f..2fec7d2f 100644
--- a/Source/CustomQuery.m
+++ b/Source/CustomQuery.m
@@ -3018,6 +3018,22 @@
}
/**
+ * Abort editing of the Favorite and History search field editors if user presses ARROW UP or DOWN
+ * to allow to navigate through the menu item list.
+ */
+- (BOOL)control:(NSControl*)control textView:(NSTextView*)textView doCommandBySelector:(SEL)commandSelector
+{
+ if(control == queryHistorySearchField || control == queryFavoritesSearchField) {
+ if(commandSelector == @selector(moveDown:) || commandSelector == @selector(moveUp:)) {
+ [queryHistorySearchField abortEditing];
+ [queryFavoritesSearchField abortEditing];
+ return YES;
+ }
+ }
+ return NO;
+}
+
+/**
* Setup various interface controls.
*/
- (void)awakeFromNib