Bug #336334 --> make select all (ctrl-a) work in the advanced search dialog. sr=bienvenu

This commit is contained in:
scott%scott-macgregor.org 2006-05-26 18:17:37 +00:00
Родитель 2438c5405c
Коммит 4da33fb082
1 изменённых файлов: 10 добавлений и 0 удалений

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

@ -83,6 +83,7 @@ var nsSearchResultsController =
case "file_message_button":
case "goto_folder_button":
case "saveas_vf_button":
case "cmd_selectAll":
return true;
default:
return false;
@ -111,6 +112,8 @@ var nsSearchResultsController =
case "saveas_vf_button":
// need someway to see if there are any search criteria...
return true;
case "cmd_selectAll":
return GetDBView() != null;
default:
if (GetNumSelectedMessages() <= 0)
enabled = false;
@ -142,6 +145,13 @@ var nsSearchResultsController =
case "saveas_vf_button":
saveAsVirtualFolder();
return true;
case "cmd_selectAll":
// move the focus to the search results pane
GetThreadTree().focus();
GetDBView().doCommand(nsMsgViewCommandType.selectAll)
return true;
default:
return false;
}