Fix bug 310989, Use user-set autocomplete keybinding in location bar, r=smorgan, sr=pinkerton. Patch by Ulrik Svedrup <englabenny@macnytt.com>. Camino-only.

This commit is contained in:
hwaara%gmail.com 2006-04-07 21:17:38 +00:00
Родитель 4ca4cc1563
Коммит 5f7f433fd2
1 изменённых файлов: 5 добавлений и 1 удалений

Просмотреть файл

@ -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];