logoalt Hacker News

mikestewtoday at 7:43 PM2 repliesview on HN

Here's a concrete one: Enter enters rename mode.

I can make the apologetics for just about anything in macOS. After over 20 years of using OS X/macOS, I still can't make the case for this one. Imagine a button has focus, you hit Enter, and it allows you to change the text on the button instead of executing the code behind button.click(). That behavior is just as dumb if a file has focus in Finder.


Replies

rufotoday at 8:29 PM

Because, as one of the original GUIs, when they conceived of how the Macintosh worked, you used the command keys to perform actions on files, and you could rename the file just by typing. Cmd-O was the shortcut for opening files, which makes sense for obvious reasons.

When they released the Macintosh to the world, Andy Hertzfeld realized that people were renaming items in the Finder by accident; so he added the "return" key (already used to confirm actions) as an "arming" step[1].

Now, one might ask: wouldn't that interrupt people navigating via the keyboard? No, because the original Macintosh didn't have arrow keys on the keyboard. This was an intentional choice—or, perhaps, mandate from Jobs—as a way to get users to use the mouse as their primary input device, and to force developers to create mouse-driven interfaces. With no arrow keys, no typeahead search implemented, and a clean slate for designing an interface, I'm guessing using Return to open a file wasn't a strong consideration at the time.

Why wasn't it changed? Because Mac OS X was made for Mac users, and we all have muscle memory dating back decades :P

[1]: https://www.folklore.org/A_Floppy_named_lsadkfjalhkjh.html

show 1 reply
tpmoneytoday at 8:27 PM

Aside from “it’s historically always done that”, I’d argue that because you use arrow keys to navigate around the finder (left, right, up, down to select, CMD-up to go up a directory, it only makes sense that CMD-down would open a directory (or file/application). And within that context it makes more sense than “enter”.