From 5f7f433fd29540318e46f39981f4d387fb81b7ed Mon Sep 17 00:00:00 2001 From: "hwaara%gmail.com" Date: Fri, 7 Apr 2006 21:17:38 +0000 Subject: [PATCH] Fix bug 310989, Use user-set autocomplete keybinding in location bar, r=smorgan, sr=pinkerton. Patch by Ulrik Svedrup . Camino-only. --- camino/src/browser/AutoCompleteTextField.mm | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/camino/src/browser/AutoCompleteTextField.mm b/camino/src/browser/AutoCompleteTextField.mm index a46a05faec6..898349c3e3a 100644 --- a/camino/src/browser/AutoCompleteTextField.mm +++ b/camino/src/browser/AutoCompleteTextField.mm @@ -990,7 +990,11 @@ NS_IMPL_ISUPPORTS1(AutoCompleteListener, nsIAutoCompleteListener) } else if (command == @selector(moveToEndOfDocument:)) { [self selectRowAt:[mTableView numberOfRows]-1]; [self completeSelectedResult]; - } else if (command == @selector(insertTab:)) { + } else if (command == @selector(complete:)) { + [self selectRowBy:1]; + [self completeSelectedResult]; + return YES; + } else if (command == @selector(insertTab:)) { if ([mPopupWin isVisible]) { [self selectRowBy:1]; [self completeSelectedResult];