2 ms·
> In particular, don't put "close this window" on control-W and "quit this application" on control-Q. I'm looking at you, Firefox. Or MacOS. I disagree with t
by filoeleven 6y ago
> In particular, don't put "close this window" on control-W and "quit this application" on control-Q. I'm looking at you, Firefox.
Or MacOS.
I disagree with this one almost entirely though. Keyboard shortcuts are for power users. Memorizing easy key combos for common tasks is the whole point, and they’re designed for touch-typists. There is a semantic reason behind mapping ctrl-q to “quit” and ctrl-w to “close window”. They use different fingers, and they are both used from “home position,” I.e. it’s not a hand shift and ring finger reach like ctrl-tab vs ctrl-~ is. That’s a better example of bad mapping IMO.
Good design should prevent you from closing a window or application that has unsaved changes without a confirmation dialog. Good design should make it easy to restore your last “saved” state for both, e.g. Chrome’s ctrl-shift-w to reopen closed tabs, and most browsers’ “reload all open tabs/windows on launch.”