Bug 396630 - places keyboard shortcuts in the places organizer are broken on mac. r=dietrich, a=dsicore.

This commit is contained in:
mozilla.mano@sent.com 2007-12-13 06:26:51 -08:00
parent 0f632d7fad
commit 02b9133243

View File

@ -78,10 +78,11 @@ var PlacesOrganizer = {
PlacesQueryBuilder.init();
#ifdef XP_MACOSX
// 1. Make Edit->Find focus the organizer search field
var findCommand = document.getElementById("cmd_find");
findCommand.setAttribute("oncommand", "PlacesSearchBox.findCurrent();");
findCommand.removeAttribute("disabled");
// 1. Map Edit->Find command to the organizer's command
var findMenuItem = document.getElementById("menu_find");
findMenuItem.setAttribute("command", "OrganizerCommand_find:current");
var findKey = document.getElementById("key_find");
findKey.setAttribute("command", "OrganizerCommand_find:current");
// 2. Disable some keybindings from browser.xul
var elements = ["cmd_handleBackspace", "cmd_handleShiftBackspace"];