Command+M Not Working on Mac? Fix It Now
In this article
If Command+M (Cmd+M) isn't minimizing your Mac windows, the shortcut is likely being intercepted by another app, a system setting, or a keyboard configuration issue. In most cases, you can fix it by checking the active app's shortcuts, resetting the keyboard shortcuts, or restarting the relevant system process. Below is a step-by-step guide to get Cmd+M working again.
What You'll Need
- Your Mac (any model running macOS)
- Access to System Settings (or System Preferences on older macOS)
- An external keyboard if you're using a laptop and suspect the built-in keyboard may have an issue (optional)
Step-by-Step
- Check if the shortcut works in a different app. Click on a window in Finder or Safari and press Command+M. If it minimizes there, the issue is app-specific. If it doesn't work anywhere, proceed to the next steps.
- Check the active app's menu bar. Look at the top menu bar while the app is active. If the "Window" menu shows "Minimize" with a grayed-out or missing Command+M, the app may have disabled the shortcut. Try a different app to confirm.
- Quit and reopen the problematic app. Sometimes an app's shortcut handler gets stuck. Use Command+Q to quit the app, then reopen it and test Cmd+M again.
- Check if another app is intercepting the shortcut. Apps like BetterTouchTool, Karabiner-Elements, or even some clipboard managers can remap or block system shortcuts. Temporarily quit any such apps (right-click their icon in the menu bar and choose Quit) and test Cmd+M again.
- Verify your keyboard settings. Go to System Settings > Keyboard > Keyboard Shortcuts (or System Preferences > Keyboard > Shortcuts on older macOS). Look for "Minimize" under the "App Shortcuts" or "Keyboard" tab. If it's listed, ensure it's enabled (checkbox checked) and that the shortcut is set to Command+M. If not, click the "+" button to add a new shortcut: select the app (or "All Applications"), enter "Minimize" as the menu title (exactly as it appears in the app's Window menu), and press Command+M.
- Reset the keyboard shortcuts to default. In the same Keyboard Shortcuts pane, click "Restore Defaults" at the bottom. This resets all custom shortcuts, so only do this if you're comfortable re-adding your custom ones later.
- Restart the WindowServer process. This refreshes the system's window management. Press Command+Control+Eject (or Command+Control+Power button on newer Macs) to force a restart, or log out and back in. This will close all open apps—save your work first.
- Check for stuck modifier keys. If the Command key itself is stuck (physically or due to a software glitch), the shortcut won't register. Press and release the Command key a few times, or try using a different keyboard (if using an external one).
- Update macOS. Go to System Settings > General > Software Update and install any pending updates. A bug in the current macOS version may be causing the issue.
Common Mistakes
- Confusing Command+M with other shortcuts: Command+M minimizes the front window. Command+Option+M minimizes all windows in the app. Command+H hides the app. Make sure you're pressing the right combination.
- Using the wrong keyboard layout: If you have a non-US keyboard layout, the M key might be in a different physical position, but the shortcut still works. However, if you've remapped keys via third-party software, the shortcut may be affected.
- Assuming it's a system-wide shortcut: Some apps (like video players or games) intentionally disable Cmd+M to prevent accidental minimization. Always test in Finder first.
- Forgetting to check the app's Window menu: If the app doesn't have a "Minimize" menu item, the shortcut won't work. Some apps use a different term, like "Collapse" or "Hide to Dock."
Tips
- Use the Dock to minimize: If Cmd+M is still not working, you can minimize a window by clicking the yellow minimize button at the top-left of the window, or by dragging the window to the Dock (if enabled in System Settings > Desktop & Dock).
- Create a custom shortcut: If you can't fix Cmd+M, you can assign a different shortcut (e.g., Command+Shift+M) in the Keyboard Shortcuts pane under App Shortcuts. This is a reliable workaround.
- Check your keyboard's function keys: On some keyboards, the F keys (like F2) might have special functions by default. If you've remapped the Command key, that could interfere. Go to System Settings > Keyboard and check the "Modifier Keys" button to ensure Command is set to Command.
- Restart your Mac: A simple restart often clears temporary glitches that affect keyboard shortcuts.
Troubleshooting
If the steps above didn't resolve the issue, try the following in order:
- Test with a different user account. Create a new user (System Settings > Users & Groups > Add Account) and log in. If Cmd+M works there, the issue is specific to your user settings. You can then reset your user's preferences (see next step).
- Reset the app's preferences. If the issue is app-specific, delete the app's preferences file (e.g., for Safari, delete com.apple.Safari.plist from ~/Library/Preferences). This resets the app's settings, which may restore the shortcut. Back up the file first if you want to keep any custom settings.
- Check for hardware issues. If you're using a laptop, the Command key might be physically damaged. Try connecting an external keyboard and test Cmd+M. If it works with the external keyboard, your built-in keyboard may need service.
- Run First Aid on your disk. Go to Applications > Utilities > Disk Utility, select your startup disk, and click "First Aid." This repairs minor disk errors that could affect system behavior.
- Reinstall macOS. As a last resort, reinstalling macOS (without erasing your data) can fix deep system issues. Back up your data first, then use Recovery Mode (restart and hold Command+R) and choose "Reinstall macOS."
Frequently Asked Questions
Why does Command+M not work in some apps?
Some apps, especially games or media players, intentionally disable the minimize shortcut to prevent accidental interruption. Check the app's Window menu to see if "Minimize" is listed and if the shortcut appears there.
Can I change the minimize shortcut to something else?
Yes. Go to System Settings > Keyboard > Keyboard Shortcuts > App Shortcuts, click the + button, select "All Applications," type "Minimize" as the menu title, and press your desired key combination. This will override the default.
What if the shortcut works in Finder but not in any other app?
This suggests the issue is with those specific apps. Try quitting them and reopening, or resetting their preferences. If the problem persists across many apps, check for a third-party keyboard remapper that might be interfering.
Does Command+M work on external keyboards?
Yes, it should work identically. If it doesn't, check the modifier key settings (System Settings > Keyboard > Modifier Keys) to ensure the Command key is mapped correctly.
Will resetting keyboard shortcuts delete my custom shortcuts?
Yes, "Restore Defaults" will remove all custom shortcuts you've added. Make a note of any you want to re-add before doing this.
Is there a way to minimize a window without using the keyboard?
Yes, you can click the yellow minimize button at the top-left of any window, or use the Dock: drag the window's title bar to the Dock and it will minimize there (if enabled in System Settings > Desktop & Dock).