Updating WordPress Posts and Pages with Ctrl+S
Posted in Blog,Development,Snippet,WordpressAugust 16, 2011No comments
I spend a lot of time coding. a lot. So much so, that when I write posts and pages on my WordPress sites and go to save it, I hit Ctrl+S (Cmd+S on Mac), which is the short-key to save in pretty much any program ever made. It can get frustrating to save and have to stop, exit out of the popup window trying to save the website locally, and then hit the Update button. So, this snippet covers how to detect when a page is loaded, output scripts, see when a user presses multiple buttons across operating systems, stop the default reaction from the browser, and finally activate a button.
Read more