Bug 365385: unbreak profile manager keyboard shortcuts, r=bsmedberg

This commit is contained in:
philringnalda%gmail.com 2007-01-03 05:14:50 +00:00
parent c30863be18
commit b8bb9a8f70

View File

@ -149,11 +149,11 @@ function onProfilesKey(aEvent)
{ {
switch( aEvent.keyCode ) switch( aEvent.keyCode )
{ {
case 46: case KeyEvent.DOM_VK_DELETE:
confirmDelete(); ConfirmDelete();
break; break;
case "VK_F2": case KeyEvent.DOM_VK_F2:
renameProfile(); RenameProfile();
break; break;
} }
} }
@ -226,9 +226,10 @@ function RenameProfile()
} }
selectedItem.label = newName; selectedItem.label = newName;
var tooltiptext = var tiptext = gProfileManagerBundle.
gProfileManagerBundle.getFormattedString("profileTooltip", [newName, aProfile.rootDir.path]); getFormattedString("profileTooltip",
listitem.setAttribute("tooltiptext", tooltiptext); [newName, selectedProfile.rootDir.path]);
selectedItem.setAttribute("tooltiptext", tiptext);
return true; return true;
} }