1
0
mirror of https://github.com/schollz/cowyo.git synced 2023-08-10 21:13:00 +03:00

Ctl+Shift+E for editing from /view, Ctl+Shift+Z for viewing from edit

This commit is contained in:
Zack Scholl 2016-02-10 18:58:58 -05:00
parent 01a91422d9
commit c3551f6570
2 changed files with 15 additions and 0 deletions

View File

@ -90,6 +90,14 @@
$(document).ready(function() { $(document).ready(function() {
$("#emit_data").autoGrow(); $("#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> </script>

View File

@ -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> </script>
</body> </body>