logoalt Hacker News

Havocyesterday at 10:45 PM6 repliesview on HN

Recently dived into mac world (air) too after decades of win/linux.

Pleasant experience and very impressed by hardware and polish except wow the keyboard/shortcut situation is absolutely cursed. Not different...actually cursed.

Who decided that sometimes its cmd+Q to close a window while other times its cmd+W and some apps support both but with different behaviours and knowing which of the three it is depends on knowing what's an OS window (but not all OS windows)? Or why is taking a screenshot of an area to clip it a FOUR key combo with one of them being a random number (the key 4). I can definitely memorize it and get used to it, but were the designers high as a kite when it was shortcut design day?


Replies

afzaliveyesterday at 10:49 PM

> keyboard/shortcut situation is absolutely cursed. Not different...actually cursed

You know, you can change almost any shortcut you want with Karabiner (app). You don't even need to memorize them.

When I first switched to Mac after using Ubuntu for 4 years before that, I didn't expect this level of customization. It's misunderstood because Apple doesn't advertise this.

show 1 reply
larkostyesterday at 11:08 PM

The cmd+q is the "quit" command. And the convention in single-window apps (or ones that have a single unambiguous main window) is that the window only closes when the app is quit. So this is command you have to give.

For "document-based" apps (think almost anything where you open multiple files), the application can stay running even if there are no open windows. So you have both cmd+q and cmd+w available to you.

You can probably come up with some apps that don't cleanly fit these two, but that is what Apple has.

As to screen shot commands, it is a three-key chord because it is system-wide, and they did not want to step on any toes that the apps might have. And there are a few versions: shift-command-3 takes the entire screen shift-command-4 takes either a window or a section (press space bar to switch between them) shift-command-5 opens a more menu-based system that includes a timer

Why 3, 4, and 5 (and not 1 or 2)... I don't know. Maybe there was something in those spots at some point.

show 1 reply
ralfdyesterday at 11:07 PM

cmd-W closes windows and cmd-Q quits the App. That Apps can stay open without having a Window is actually useful (at least it makes sense to me).

@screenshot

Mac has always been kind of amazing for the granular options you get to take screenshots out of the box.

• Command - Shift - 3 | Takes a fullscreen pic of the entire display. Loads a preview in the bottom right corner. Click to expand, and from there edit, share, save, delete, etc.

• Command - Shift - 4 | Turns your mouse cursor into a crosshair. Drag to create a rectangular window. Takes a capture of the contents when done. Escape or right-click to cancel. Preview loads the same as above.

• Command - Shift - 5 | Brings up a rectangular section that can be moved around and resized.

But any shortcut can be remapped:

Go to System Settings > Keyboard > Keyboard Shortcuts > Screenshots

show 1 reply
GeekyBearyesterday at 10:57 PM

The standard behavior is that:

Command Q quits the currently active application.

Command W closes the current window without quitting the active application.

show 1 reply
subarcticyesterday at 11:34 PM

I'm so used to macos now that I don't even realize that this is confusing. What OS did you use before, windows? is there no distinction between quiting an app and closing a window on windows?

y1n0yesterday at 10:50 PM

What app doesn’t support cmd-w?

show 2 replies