Skip to content

Commit

Permalink
Ctl+Shift+E for editing from /view, Ctl+Shift+Z for viewing from edit
Browse files Browse the repository at this point in the history
  • Loading branch information
schollz committed Feb 10, 2016
1 parent 01a9142 commit c3551f6
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
8 changes: 8 additions & 0 deletions templates/index.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,14 @@
$(document).ready(function() {
$("#emit_data").autoGrow();
});

$(document).keydown(function(e){
if( e.which === 90 && e.ctrlKey && e.shiftKey ){
console.log('control + shift + z');
window.location = "/{{ .Title }}/view";
}
});

</script>


Expand Down
7 changes: 7 additions & 0 deletions templates/view.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,13 @@ $( document ).ready(function() {

});

$(document).keydown(function(e){
if( e.which === 69 && e.ctrlKey && e.shiftKey ){
console.log('control + shift + e');
window.location = "/{{ .Title }}";
}
});


</script>
</body>
Expand Down

0 comments on commit c3551f6

Please sign in to comment.