summaryrefslogtreecommitdiff
path: root/views/new-post.php
diff options
context:
space:
mode:
Diffstat (limited to 'views/new-post.php')
-rw-r--r--views/new-post.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/views/new-post.php b/views/new-post.php
index 5221dc8..fa7b9bc 100644
--- a/views/new-post.php
+++ b/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 = [];