This site will have limited functionality while we undergo maintenance to improve your experience. If an article doesn't solve your issue and you want to ask a question, we have our support community waiting to help you at @FirefoxSupport on Twitter and/r/firefox on Reddit.

Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

How do I stop firefox from closing tabs with Ctrl+w?

  • 2 replies
  • 1 has this problem
  • 38 views
  • Last reply by ndvo

more options

In shell and some editors (i.e. vim) Ctrl+w is the shortcut for deleting the preceding word when you are typing. It is, sure, OK that the shortcuts in Firefox are different, but it closes the tab when I press it and this makes me loose lot's of text already typed in forms.

I'd like to change this shortcut, but can't find a way to do it.

In shell and some editors (i.e. vim) Ctrl+w is the shortcut for deleting the preceding word when you are typing. It is, sure, OK that the shortcuts in Firefox are different, but it closes the tab when I press it and this makes me loose lot's of text already typed in forms. I'd like to change this shortcut, but can't find a way to do it.

Chosen solution

Hi ndvo,

I understand that you wish to change the default shortcut to close tabs (Ctrl + W) to something else.

Please take a look at the add-on Customizable Shortcuts. It has very good ratings and appears to work well.

I hope this information helps you. Please let us know if your problem persists, or if you have any other questions.

And by the way, thanks for helping a Firefox user on the other thread, and welcome to SUMO! :D

Cheers!!

- Ralph

Read this answer in context 👍 1

All Replies (2)

more options

Chosen Solution

Hi ndvo,

I understand that you wish to change the default shortcut to close tabs (Ctrl + W) to something else.

Please take a look at the add-on Customizable Shortcuts. It has very good ratings and appears to work well.

I hope this information helps you. Please let us know if your problem persists, or if you have any other questions.

And by the way, thanks for helping a Firefox user on the other thread, and welcome to SUMO! :D

Cheers!!

- Ralph

more options

Thank you Ralph!

It worked perfectly. Better yet, it allows me to set other shortcuts to something I am more familiar with.