Pesquisar no site de suporte

Evite golpes de suporte. Nunca pedimos que você ligue ou envie uma mensagem de texto para um número de telefone, ou compartilhe informações pessoais. Denuncie atividades suspeitas usando a opção “Denunciar abuso”.

Learn More

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

  • 5 respostas
  • 1 tem este problema
  • 5 visualizações
  • Última resposta de 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.

Todas as respostas (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>