Browse Source

add ctrl-s keyboard shortcut

pull/5/head
Aaron Parecki 10 years ago
parent
commit
3f090eeb30
2 changed files with 14 additions and 0 deletions
  1. +7
    -0
      views/new-bookmark.php
  2. +7
    -0
      views/new-post.php

+ 7
- 0
views/new-bookmark.php View File

@ -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
- 0
views/new-post.php View File

@ -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