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

    Vaporware or not? Aptera assembles its first five validation models.

    The vehicle seats just two occupants and their luggage, but it takes up a surprising amount of room on the road—it’s actually an inch and a half wider than the…

    A Woman Was in the US Legally. She Was Deported Anyways

    That was Thursday, February 19, around 8:30 am. I was detained on February 18, around 11:30, so it took less than 24 hours for me to be deported. My daughter…

    Leave a Reply

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

    You Missed

    Vaporware or not? Aptera assembles its first five validation models.

    Vaporware or not? Aptera assembles its first five validation models.

    Hailey Bieber Just Wore Her Cropped Jeans With Heeled Flip-Flops

    Hailey Bieber Just Wore Her Cropped Jeans With Heeled Flip-Flops

    13 men killed by US military boat strikes identified: ‘These were flesh-and-blood people’ | US military

    13 men killed by US military boat strikes identified: ‘These were flesh-and-blood people’ | US military

    Parliamentary Secretary Robert Oliphant concludes visit to United Kingdom and announces new funding to support education initiatives across Commonwealth

    Parliamentary Secretary Robert Oliphant concludes visit to United Kingdom and announces new funding to support education initiatives across Commonwealth

    Interfor Reports Voting Results from Annual General Meeting

    The simple truth behind the Nakba