I Kept Accidentally Closing All My Browser Tabs. So I Changed My Keyboard to Stop It


I’ve memorized all my favorite Mac shortcuts, so I typically open new tabs, copy text and paste without having to look at my keyboard. Sometimes, though, my finger slips and I hit the wrong key. And there’s one instance where that mistake isn’t always easy to undo.

By default, Command-W on a Mac closes the current tab in your browser. I use this shortcut often to help me manage my many, many open tabs. (Hey, I need them for emotional support.) But every now and then, my finger strikes Command-Q instead, which performs a very different function.

CNET Tech Tips badge; click here for more

Command-Q closes all my windows and quits the app I’m using. Since the Q and W keys are right next to each other, I’ve triggered this function by mistake on multiple occasions. Imagine my horror when dozens of my Safari tabs suddenly disappear. 

I can always restart my browser or the app that I accidentally closed. But sometimes I’ll find myself logged out of my bank account while I’m in the middle of filling out a form, erasing my progress. Or worse, I’ll return to a Google Doc and find that my work wasn’t automatically saved.

I can’t stop myself from triggering the wrong key combination by mistake. But I’ve found an easy solution to the problem: Remap my Ctrl-Q keyboard shortcut. Here’s how I did it.

How to remap your keyboard shortcuts in MacOS

Remapping is a quick way to make your keyboard shortcuts follow your own preferences. 

Maybe you’re a lifelong Windows user navigating a Mac for the first time, and some of the default shortcuts don’t feel intuitive. 

Or maybe you’re like me, and you have a habit of mistyping certain key combinations. I fixed my Command-Q issue by assigning the shortcut to do something that doesn’t interfere with my current app. 

After opening my Mac Settings, I navigated to Keyboard > Keyboard Shortcuts > Accessibility. I toggled on Invert colors. Then, I double-clicked in the key combination field and typed in Command-Q.

screenshot-2026-05-06-at-4-40-37pm.png

Jason Chun/CNET

Voilà. Now, when I type Command-Q, all that happens is my screen’s colors invert. It’s a little jarring visually, but the function has no effect on the app I’m currently using. I can simply hit the same shortcut again to change colors back to normal.

screenshot-2026-05-06-at-4-39-52pm.png

Jason Chun/CNET

You can remap key combinations or disable them to suit your workflow. In the Keyboard Shortcuts sub-menu, you’ll see options to change key combinations for screenshot captures, accessibility features and more. One thing to note: You need to use the Control, Option or Command keys or a combination of those keys for any new shortcuts you want to create.

How to remap your keyboard shortcuts in Windows

Windows users can also remap their default keyboard shortcuts through a free set of system utilities called Microsoft PowerToys. If you don’t already have PowerToys, you’ll need to install it via the Microsoft Store, GitHub, or a Windows package manager like Chocolatey or Scoop.

power-toys-home.png

Matt Elliott/CNET

Once you have PowerToys installed, open the Settings page, go to Keyboard Manager and select Remap a key or Remap a shortcut

Click the + (plus sign) to assign a new shortcut to a key or combination of keys. Then click OK to save the changes.

powertoys-kb-mgr-window.png

Matt Elliott/CNET

Your machine has many hidden keyboard shortcuts, and not all users will find them intuitive. If you’re frequently mistyping a combination of keys, you don’t necessarily need to unlearn the habit — instead, you can make your machine learn yours.





Source link

  • Related Posts

    Microsoft Edge is about to lock out older ad blockers, just like Chrome did

    Microsoft Edge is ending support for the Manifest V2 extensions platform, which will cut off the uBlock Origin adblocker and others like it, just like Google Chrome did earlier this…

    OpenAI’s expensive smart speaker will use moving parts to seem “more alive”

    OpenAI’s upcoming smart speaker will probably cost over $300, “people familiar with the matter” have told Bloomberg’s Mark Gurman. The generative AI company has “discussed” charging up to $400, Bloomberg,…

    Leave a Reply

    Your email address will not be published. Required fields are marked *

    You Missed

    War Brings Winter of Discontent for the World’s Workhorse Fuel

    Salsa on St. Clair shooting: Toronto police charge 2 men with 1st-degree murder in 'act of extraordinary violence' that left 2 dead

    Salsa on St. Clair shooting: Toronto police charge 2 men with 1st-degree murder in 'act of extraordinary violence' that left 2 dead

    Microsoft Edge is about to lock out older ad blockers, just like Chrome did

    Microsoft Edge is about to lock out older ad blockers, just like Chrome did

    Pellet Guns, Sticks and Tear Gas: How India’s Police Halted a Youth March

    Pellet Guns, Sticks and Tear Gas: How India’s Police Halted a Youth March

    3 vehicle occupants face gun charges after Toronto police fatally shoot man, 19, in car

    3 vehicle occupants face gun charges after Toronto police fatally shoot man, 19, in car

    Transfer window: What’s it like being a partner of a footballer on deadline day?

    Transfer window: What’s it like being a partner of a footballer on deadline day?