Поиск в Поддержке

Избегайте мошенников, выдающих себя за службу поддержки. Мы никогда не попросим вас позвонить, отправить текстовое сообщение или поделиться личной информацией. Сообщайте о подозрительной активности, используя функцию «Пожаловаться».

Подробнее

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>