OS X Tip: Remapping keyboard shortcuts
8th June 2004
On my Mac, Apple+W is the shortcut for closing a window (or tab in a tabbed application such as Safari or Firefox) while Apple+Q quits the application completely. These keys are right next to each other on the keyboard. Today, for the final time, I hit the wrong key and accidentally sent a couple of days accumulation of useful browser windows straight in to the abyss. I say for the last time because my intended IRC rant about the stupidity of setting those two keys right next to each other was cut off by Richard Soderberg, who showed me how to remap keyboard shortcuts for any application in OS X.
- Bring up the Keyboard & Mouse preference pane.
- Hit the Keyboard Shortcuts tab.
- Click the + icon.
- Select Firefox from the Application menu.
- In the Menu Title box, enter the exact text “Quit Firefox”.
- In the Keyboard Shortcut box, enter a new shortcut (crysflame suggested Option-Apple-Q).
- Click Add.
You’ll need to restart Firefox to see the change, but sure enough the old keyboard shortcut has been replaced—and the menu has even been updated to reflect the change! Magic. I’d be interested to know what happens when you try this in apps that have more than one menu item with the same name. Right now I’m going through all my other multi-window apps (SubEthaEdit, Safari etc.) and remapping their quit keys as well.
More recent articles
- AI for Data Journalism: demonstrating what we can do with this stuff right now - 17th April 2024
- Three major LLM releases in 24 hours (plus weeknotes) - 10th April 2024
- Building files-to-prompt entirely using Claude 3 Opus - 8th April 2024
- Running OCR against PDFs and images directly in your browser - 30th March 2024
- llm cmd undo last git commit - a new plugin for LLM - 26th March 2024
- Building and testing C extensions for SQLite with ChatGPT Code Interpreter - 23rd March 2024
- Claude and ChatGPT for ad-hoc sidequests - 22nd March 2024
- Weeknotes: the aftermath of NICAR - 16th March 2024
- The GPT-4 barrier has finally been broken - 8th March 2024
- Prompt injection and jailbreaking are not the same thing - 5th March 2024