搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

详细了解

Disable CTRL+S shortcut to "Save As" on Mozilla Firefox

  • 5 个回答
  • 1 人有此问题
  • 7 次查看
  • 最后回复者为 cor-el

more options

On Mozilla firefox browser, whenever we hit CTRL+S , there is "Save As" dialog box popup. We need to disable this.

I went through the keyboard accelerators but could not find the right one.

Please advise.

On Mozilla firefox browser, whenever we hit CTRL+S , there is "Save As" dialog box popup. We need to disable this. I went through the keyboard accelerators but could not find the right one. Please advise.

所有回复 (5)

more options

If we cannot answer it here, you might have better luck opening a question in stackoverflow.com: ex:

more options

What do you want to happen when you press Ctrl+s, a different function or nothing at all?

One tool for changing keyboard shortcuts is keyconfig, which I haven't used for a while, but probably is still supported: http://forums.mozillazine.org/viewtopic.php?f=48&t=72994

more options

guigs said

If we cannot answer it here, you might have better luck opening a question in stackoverflow.com: ex:

jscher2000 said

What do you want to happen when you press Ctrl+s, a different function or nothing at all? One tool for changing keyboard shortcuts is keyconfig, which I haven't used for a while, but probably is still supported: http://forums.mozillazine.org/viewtopic.php?f=48&t=72994

> Response

CTRL+S saves a record on the application. So basically I want Mozilla to not open up the save dialog box(suppress the mozilla accelerator). I went through the about:config however I could not find the correct entry hence I posted this question.

Regards Nitesh

more options

So do those events occur in sequence: first your application saves the record and then Firefox opens the Save As dialog?

If this is your application, try canceling the propagation of the keyboard event in your keydown/keyup/keypress handler before returning:

event.stopPropagation();
event.preventDefault();.

If this is a third party application, hmm, take a look at keyconfig.

more options

You could create your own extension and remove the attributes of that command.

savepagedisable.xul:

<?xml version="1.0"?>

<overlay id="savepage-disable-overlay" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">

<script type="text/javascript">
<![CDATA[
var E=window.document.getElementById("key_savePage");
if(E){
E.removeAttribute("command");
E.removeAttribute("key");
E.removeAttribute("modifiers");
}
]]></script>

</overlay>