mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-04 04:58:00 +00:00
Bug 365385: unbreak profile manager keyboard shortcuts, r=bsmedberg
This commit is contained in:
parent
c30863be18
commit
b8bb9a8f70
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user