如何禁用关闭使用CTRL + F4的Firefox 7标签 [英] How to disable closing Firefox 7 tab using ctrl+F4

查看:341
本文介绍了如何禁用关闭使用CTRL + F4的Firefox 7标签的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已浏览周围找到一种方法,使用禁用关闭Firefox的标签7 CTRL + F4 。结果
硬样找到一个简单的方法来做到这一点。锁定浏览器的安全性将帮助我使用Firefox作为Linux日活动期间亭。

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.

推荐答案

好奇,我从来不知道<大骨节病> CTRL + <大骨节病> F4 是能够关闭的选项卡。

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

我已经调查的情况一点。我试过在Keyconfig禁用它,但没有成功。快捷方式甚至没有列出。当您尝试添加其他的快捷键为<大骨节病> CTRL + <大骨节病> F4 覆盖默认的行为,但它仍然关闭的选项卡。

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.

注意,也<大骨节病> CTRL + <大骨节病>是W 是能够关闭的标签,但在这种情况下,您可以在Keyconfig禁用它。

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

似乎<大骨节病> CTRL + <大骨节病>是W 和<大骨节病> CTRL + <大骨节病> F4 的处理,因此不同的方式。

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

关于<大骨节病> CTRL + <大骨节病> F4 ,我能够找到以下code:

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

http://dxr.mozilla.org/ Mozilla的中央/浏览器/基/内容/ tabbrowser.xml.html ,#else伪符合2437:

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

我是新来的Mozilla code基,所以我不知道在哪里搜索<大骨节病> CTRL + <大骨节病>是W 但是。但似乎<大骨节病> CTRL + <大骨节病> F4 是在编译时用于Windows和Linux硬codeD并且不容易(或全部)配置的。

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.

您可以把报告bug来的Bugzilla ,但我不知道这是否会得到最优先治疗

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

这篇关于如何禁用关闭使用CTRL + F4的Firefox 7标签的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆