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:
parent
01a91422d9
commit
c3551f6570
@ -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>
|
||||||
|
|
||||||
|
|
||||||
|
@ -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>
|
||||||
|
Loading…
Reference in New Issue
Block a user