Bug 417961: ctrl-z in content window can undo last bookmarks action, r=Neil

This commit is contained in:
ajschult%verizon.net 2008-02-20 07:15:44 +00:00
Родитель 877d8b6e47
Коммит be6ab3915d
1 изменённых файлов: 26 добавлений и 8 удалений

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

@ -294,7 +294,31 @@ var BookmarksMenu = {
var BookmarksMenuController = { var BookmarksMenuController = {
supportsCommand: BookmarksController.supportsCommand, supportsCommand: function (aCommand)
{
var isCommandSupported;
switch(aCommand) {
case "cmd_bm_cut":
case "cmd_bm_copy":
case "cmd_bm_paste":
case "cmd_bm_delete":
case "cmd_bm_open":
case "cmd_bm_openinnewwindow":
case "cmd_bm_openinnewtab":
case "cmd_bm_managefolder":
case "cmd_bm_newfolder":
case "cmd_bm_properties":
case "cmd_bm_rename":
case "cmd_bm_movebookmark":
case "cmd_bm_sortfolderbyname":
case "cmd_bm_sortfolder":
isCommandSupported = true;
break;
default:
isCommandSupported = false;
}
return isCommandSupported;
},
isCommandEnabled: function (aCommand) isCommandEnabled: function (aCommand)
{ {
@ -310,13 +334,7 @@ var BookmarksMenuController = {
{ {
var selection = BookmarksMenu._selection; var selection = BookmarksMenu._selection;
var target = BookmarksMenu._target; var target = BookmarksMenu._target;
switch (aCommand) { BookmarksController.doCommand(aCommand, selection, target);
case "cmd_bm_expandfolder":
setTimeout(BookmarksMenu.expandBTFolder, 0);
break;
default:
BookmarksController.doCommand(aCommand, selection, target);
}
}, },
onMouseMove: function (aEvent) onMouseMove: function (aEvent)