Closed (fixed)
Project:
Shortcut (from core)
Version:
6.x-1.2
Component:
Documentation
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
27 Mar 2011 at 15:35 UTC
Updated:
24 Feb 2012 at 15:40 UTC
I'd love to just set up Ctrl-S to save the current node. Can anyone provide guidance on how to do that?
Comments
Comment #1
firestonej commentedI was able to do this by adding a javascript file with a function in it to my theme's .info file. The function simply called:
document.forms['node-form'].submit(); return 0;Then I call the name of this function and pick my shortcut. I'm not getting meta tags to work, but I think that might be a separate issue. I can still get this to work with single key presses.
Comment #2
nestor.mata commentedModifications has being made so that the javascript works on several browsers.
If you want to use the metakeys the advice is to set up the keycode, not the letter, that should work.
Also, I will consider adding more based javascript function to submit forms and other useful features.
Nestor