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
Former-commit-id: d7dd48b445460200e7908075cf733174a8246254 [formerly 5869e2467eed2bc5c318512b63860df9d5966d28] [formerly 226550cd05852e82435f683b147856e7d3998e79 [formerly 34244c55df812f5a6e0bad1569b921769fd562c9 [formerlyc3551f6570
]]] Former-commit-id: 32f901e8d449d87ee6387db1d5e1e1412e39b7ac [formerly 66a4762ef05070986effeb22a6d398a2f4393866] Former-commit-id: ee34c3ac6d445c2b53b9b5936593f9ea6d5b331a Former-commit-id:372409fd3f
This commit is contained in:
parent
aa4a05cad4
commit
10860b8540
@ -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