зеркало из https://github.com/mozilla/pjs.git
Bug #336334 --> make select all (ctrl-a) work in the advanced search dialog. sr=bienvenu
This commit is contained in:
Родитель
2438c5405c
Коммит
4da33fb082
|
@ -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;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче