diff --git a/templates/index.tmpl b/templates/index.tmpl index 56510c3..e0e8393 100644 --- a/templates/index.tmpl +++ b/templates/index.tmpl @@ -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"; + } + }); + diff --git a/templates/view.tmpl b/templates/view.tmpl index 1f1e373..bc482d4 100644 --- a/templates/view.tmpl +++ b/templates/view.tmpl @@ -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 }}"; + } +}); +