Browse Source

add ctrl-s keyboard shortcut

pull/5/head
Aaron Parecki 10 years ago
parent
commit
3f090eeb30
  1. 7
      views/new-bookmark.php
  2. 7
      views/new-post.php

7
views/new-bookmark.php

@ -62,6 +62,13 @@
<script>
$(function(){
// ctrl-s to save
$(window).on('keydown', function(e){
if(e.keyCode == 83 && e.ctrlKey){
$("#btn_post").click();
}
});
$("#btn_post").click(function(){
var syndications = [];

7
views/new-post.php

@ -102,6 +102,13 @@
<script>
$(function(){
// ctrl-s to save
$(window).on('keydown', function(e){
if(e.keyCode == 83 && e.ctrlKey){
$("#btn_post").click();
}
});
$("#btn_post").click(function(){
var syndications = [];

Loading…
Cancel
Save