Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

Firefox has a problem by which you can't assign it a shortcut to zoom the window.
As it has another menu item named "Zoom" which actually has subitems for zoom in, etc. you can't map the shortcut by menu item name, because that item takes the stroke instead of the window zoom.
I tried to edit Firefox's resources, to see if there was a .nib where I could rename the menu item to another thing so the shortcut would find the correct "zoom" item, but failed.
Does someone have a solution for this?

edit: I'm talking about MacOS's Zoom Window action equivalent to Windows' Maximize, and not about zooming the contents in or out.

share|improve this question
    
What do you mean by 'zoom' (increase the size of the window or the same as control scroll? –  Digitalchild Jun 30 '11 at 4:24
    
Yes, Zoom as making the window fit the screen, as in Window's Maximize. –  Petruza Jun 30 '11 at 13:25
add comment

3 Answers 3

up vote 2 down vote accepted

Firefox uses XUL files to define its user interface on all platforms. I just did a little poking in my Firefox.app 4.0.1 bundle:

  • The XUL files are stored in Firefox.app/Contents/MacOS/omni.jar. (jar files can be unpacked with any Zip archive tool, or the jar command-line tool which takes options like tar.)
  • The relevant XUL file may be chrome/browser/content/browser/baseMenuOverlay.xul. See also the referenced DTD files for the definitions of the entities like &zoomWindow.label;.

Since you're editing the files anyway, you might as well add a shortcut there rather than changing the name to use the system shortcut customizer.

share|improve this answer
add comment

Apple - Shift - F will do the trick, I believe.

share|improve this answer
    
nope, but thanks anyway –  Petruza Jul 12 '11 at 19:07
    
That's fullscreen. –  Petruza Dec 11 '11 at 16:32
add comment

Go to System Preferences > Keyboard > Keyboard Shortcuts > Application Shortcuts and add one for Firefox. Get the name of the menu item for, say, Zoom In and assign it a shortcut, then repeat for Zoom Out.

It sounds like you're saying there is some reason you can't do this, but if you tell it "Zoom In" (or whatever it's called; I haven't installed Firefox on this computer yet) rather than "Zoom" I don't see why it wouldn't work.

share|improve this answer
1  
Thanks for the answer but I have since switched to Chrome, which surprisingly enough conforms to its operating system usability guidelines ;). –  Petruza Jan 16 '12 at 21:30
1  
But answers could help someone else with the same problem, so even if the original poster doesn't need more suggestions, others may. –  Daniel Lawson Jan 16 '12 at 21:36
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.