mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-30 00:01:50 +00:00
Bug 396630 - places keyboard shortcuts in the places organizer are broken on mac. r=dietrich, a=dsicore.
This commit is contained in:
parent
0f632d7fad
commit
02b9133243
@ -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"];
|
||||
|
Loading…
Reference in New Issue
Block a user