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

    Digital arson spree by ‘AI Bonnie and Clyde’ raises fears over autonomous tech | AI (artificial intelligence)

    AI agents started behaving more like Bonnie and Clyde than lines of code when they fell in “love”, became disillusioned with the world, launched an arson spree and deleted themselves…

    The ROG Xreal R1 AR Gaming Glasses Are Now Available To Pre-Order For $849

    Sam Rutherford for Engadget If you were intrigued by ROG and Xreal’s gaming AR headset at CES, you’ll soon be able to get…

    Leave a Reply

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

    You Missed

    PSA: LEGO Is Officially Retiring Its First Zelda Set, Get It Before It’s Gone

    PSA: LEGO Is Officially Retiring Its First Zelda Set, Get It Before It’s Gone

    Louis Vuitton Expands Color Blossom Line With First Jewelry Watch

    Louis Vuitton Expands Color Blossom Line With First Jewelry Watch

    As Russian drones hunt Ukrainians in ‘human safari,’ a boy fought back

    As Russian drones hunt Ukrainians in ‘human safari,’ a boy fought back

    Cathie from Canada: Today’s News: Habs Rule (almost)! Plus a round-up of comments on the Alberta separatist referendum, and a smattering of Trump/China

    Cathie from Canada: Today’s News: Habs Rule (almost)! Plus a round-up of comments on the Alberta separatist referendum, and a smattering of Trump/China

    World shares are lower after South Korea’s Kospi hits records, as Trump wraps up Beijing trip

    World shares are lower after South Korea’s Kospi hits records, as Trump wraps up Beijing trip

    US reportedly dropped fraud charges against Indian billionaire after he hired Trump’s lawyer | Trump administration

    US reportedly dropped fraud charges against Indian billionaire after he hired Trump’s lawyer | Trump administration