[wp-trac] [WordPress Trac] #31655: Cmd+S needs to work in text view of post editor

WordPress Trac noreply at wordpress.org
Mon May 4 21:40:20 UTC 2015


#31655: Cmd+S needs to work in text view of post editor
--------------------------------------+-----------------------------
 Reporter:  krogsgard                 |       Owner:
     Type:  defect (bug)              |      Status:  new
 Priority:  normal                    |   Milestone:  Future Release
Component:  Editor                    |     Version:
 Severity:  normal                    |  Resolution:
 Keywords:  needs-patch dev-feedback  |     Focuses:  ui, javascript
--------------------------------------+-----------------------------
Changes (by voilamedia):

 * keywords:  needs-patch => needs-patch dev-feedback


Comment:

 Something like this should work


 {{{
 document.addEventListener("keydown", function(e) {
   if (e.keyCode == 83 && (navigator.platform.match("Mac") ? e.metaKey :
 e.ctrlKey)) {
     e.preventDefault();
     // Process save
   }
 }, false);
 }}}

 i believe this should fix things..  but seeing the core uses keypress i
 cant seem to be able to find where the save is being made in the admin js
 files. Can someone point me to the file and line number where this is
 being done.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/31655#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list