Disable CTRL+S shortcut to "Save As" on Mozilla Firefox
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.
Všetky odpovede (5)
If we cannot answer it here, you might have better luck opening a question in stackoverflow.com: ex:
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
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
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.
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>