Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6747731
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T12:28:45+00:00 2026-05-26T12:28:45+00:00

I have been browsing around to find a way to disable closing Firefox 7

  • 0

I have been browsing around to find a way to disable closing Firefox 7 tab using ctrl+F4.
Kind of hard to find an easy way to do it. Lock down browser security will help me using Firefox as a kiosk during the Linux Day event.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T12:28:45+00:00Added an answer on May 26, 2026 at 12:28 pm

    Curious, I’ve never known CTRL+F4 is able to close the tab.

    I’ve investigated the case a bit. I’ve tried disabling it in Keyconfig, but without success. The shortcut is not even listed there. When you try to add other shortcut to CTRL+F4 to override the default behavior, it still closes the tab.

    Note that also CTRL+W is able to close the tab, but in this case you can disable it in Keyconfig.

    Seems that CTRL+W and CTRL+F4 are handled different way therefore.

    About CTRL+F4, I was able to find the following code:

    http://dxr.mozilla.org/mozilla-central/browser/base/content/tabbrowser.xml.html, #else in line 2437:

    #ifdef XP_MACOSX
              ...
    #else
              if (aEvent.ctrlKey && !aEvent.shiftKey && !aEvent.metaKey &&
                  aEvent.keyCode == KeyEvent.DOM_VK_F4 &&
                  this.mTabBox.handleCtrlPageUpDown) {
                this.removeCurrentTab({animate: true});
                aEvent.stopPropagation();
                aEvent.preventDefault();
              }
    #endif
    

    I’m new to Mozilla code base, so I don’t know where to search for CTRL+W however. But it seems CTRL+F4 is hardcoded at compile time for Windows and Linux and not easily (or at all) configurable.

    You can think of reporting a bug to Bugzilla but I don’t know if this would get top-priority treatment.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have been browsing around on the internet and researching effective sitemap web pages.
I have been around browsing tutorials for android power button mods, I have a
I have been browsing SO and various other sites to find out whether this
I have been browsing the reference section on Android.com and couldn't quite find the
I have been browsing the web looking for caching information but cannot find anything
I have been browsing the web lately to find a good Web UI kit.
This is the first time I am using a plist. I have been browsing
I have been browsing through Google for various explanations but I STILL couldn't figure
I have been browsing tutorials but all are just gibberish since I do not
Have been looking on some tutorials for drawing canvas using SurfaceView, but the only

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.