aboutsummaryrefslogtreecommitdiffstats
path: root/Source/CustomQuery.m
diff options
context:
space:
mode:
authorBibiko <bibiko@eva.mpg.de>2009-08-28 13:19:31 +0000
committerBibiko <bibiko@eva.mpg.de>2009-08-28 13:19:31 +0000
commitc5db2b046cd823442ef7783446334accd084c332 (patch)
treea277dc7750a7d2208afbab95f7c952fe4f381aab /Source/CustomQuery.m
parent87f5d0a9f91c49e9e4ae5f9411fc3a0e716911b1 (diff)
downloadsequelpro-c5db2b046cd823442ef7783446334accd084c332.tar.gz
sequelpro-c5db2b046cd823442ef7783446334accd084c332.tar.bz2
sequelpro-c5db2b046cd823442ef7783446334accd084c332.zip
• simplified code for inserting the seach fieldes (fav/hisotry) - now set in DBView
• added keyboard short-cut ⌥⌘F and ⌥⌘H for open Favorites and History (for testing)
Diffstat (limited to 'Source/CustomQuery.m')
-rw-r--r--Source/CustomQuery.m31
1 files changed, 1 insertions, 30 deletions
diff --git a/Source/CustomQuery.m b/Source/CustomQuery.m
index 0970d2c5..48d3eb96 100644
--- a/Source/CustomQuery.m
+++ b/Source/CustomQuery.m
@@ -176,6 +176,7 @@
*/
- (IBAction)chooseQueryHistory:(id)sender
{
+ // Choose history item
if ([queryHistoryButton indexOfSelectedItem] > 3) {
if([prefs boolForKey:@"QueryHistoryReplacesContent"])
[textView setSelectedRange:NSMakeRange(0,[[textView string] length])];
@@ -1839,28 +1840,6 @@
}
-/*
- * TODO !! If user hit RETURN in fav/history search field
- * the next menu item if any should be highlighted and the
- * menu list should become the first responder - but how?
- */
-- (void)controlTextDidEndEditing:(NSNotification *)notification
-{
- if ([notification object] == queryFavoritesSearchField) {
- [self filterQueryFavorites:nil];
- if( [queryFavoritesButton numberOfItems] > 6 ) {
- // TODO How to select the next menu item if user hits ENTER in search field?
- // [queryFavoritesButton selectItemAtIndex:6];
- }
- }
- else if ([notification object] == queryHistorySearchField) {
- [self filterQueryHistory:nil];
- if( [queryHistoryButton numberOfItems] > 4 ) {
- // TODO How to select the next menu item if user hits ENTER in search field?
- // [queryHistoryButton selectItemAtIndex:4];
- }
- }
-}
#pragma mark -
#pragma mark SplitView delegate methods
@@ -2543,14 +2522,6 @@
{
// Set the structure and index view's vertical gridlines if required
[customQueryView setGridStyleMask:([prefs boolForKey:@"DisplayTableViewVerticalGridlines"]) ? NSTableViewSolidVerticalGridLineMask : NSTableViewGridNone];
-
- // Add the searchfield to the Query Favorite popup button list
- [queryFavoritesSearchMenuItem setView:queryFavoritesSearchFieldView];
- [queryFavoritesSearchField setNextKeyView:queryFavoritesButton];
-
- // Add the searchfield to the Query Favorite popup button list
- [queryHistorySearchMenuItem setView:queryHistorySearchFieldView];
- [queryHistorySearchField setNextKeyView:queryHistoryButton];
// Populate the query favorites popup button
NSMenu *menu = [queryFavoritesButton menu];