Assign a shortcut for the Zoom menu item (or whatever it's called in your locale) from System Preferences:
![](../../I/static/images/4a8647f34b863d4d9d8760ddfbf5072e2cb87b8e22254349726b38642f22bea8.png)
If you want the shortcut to always maximize a window to fill a screen, you can use for example Spectacle:
![](../../I/static/images/e96b9c876a37f93418e2e7bc32dcb157a2adc016cfe10ece863166489c9c61e0.png)
Or add a line like this to ~/.slate
with Slate:
bind m:cmd;shift move screenOriginX;screenOriginY screenSizeX;screenSizeY
I have used FastScripts to assign a shortcut to this script:
try
tell application "Finder" to set b to bounds of window of desktop
try
tell application (path to frontmost application as text)
set bounds of window 1 to {item 1 of b, 22, item 3 of b, item 4 of b}
end tell
on error
tell application "System Events" to tell window 1 of (process 1 where it is frontmost)
try
set position to {0, 22}
set size to {item 3 of b, (item 4 of b) - 22}
on error
click (button 1 of window 1 where subrole is "AXZoomButton")
end try
end tell
end try
end try
When you tell System Events to change the position and size through the accessibility API, there is a noticeable delay between when the position and the size are changed. Telling the application to change the bounds of a window is faster but it doesn't work with all applications. Other applications like Slate and Moom always use the accessiblity API.
Even if this is a "dupe", the answer, below, using the Keyboard Sys Pref that applies specifically to window maximization is dope (and not at the other location). Yes. Dope. – ruffin – 2014-08-31T20:38:30.187
3( control + command + F ) goes to full screen – eneski – 2018-02-08T21:44:45.343
3do you mean OSX in the title and content? your tags and content don't match – None – 2014-02-18T21:00:32.367