diff --git a/templates/index.tmpl b/templates/index.tmpl index e0e8393..eb1f25e 100644 --- a/templates/index.tmpl +++ b/templates/index.tmpl @@ -92,12 +92,18 @@ }); $(document).keydown(function(e){ - if( e.which === 90 && e.ctrlKey && e.shiftKey ){ - console.log('control + shift + z'); - window.location = "/{{ .Title }}/view"; - } + if( e.which === 90 && e.ctrlKey && e.shiftKey ){ + console.log('control + shift + z'); + window.location = "/{{ .Title }}/view"; + } }); + $(document).keydown(function(e){ + if( e.which === 76 && e.ctrlKey && e.shiftKey ){ + console.log('control + shift + l'); + window.location = "/{{ .Title }}/list"; + } + }); diff --git a/templates/list.tmpl b/templates/list.tmpl index 93eac34..00174c4 100644 --- a/templates/list.tmpl +++ b/templates/list.tmpl @@ -70,6 +70,20 @@ } }); + + $(document).keydown(function(e){ + if( e.which === 69 && e.ctrlKey && e.shiftKey ){ + console.log('control + shift + e'); + window.location = "/{{ .Title }}"; + } + }); + $(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 bc482d4..fff7bb1 100644 --- a/templates/view.tmpl +++ b/templates/view.tmpl @@ -75,6 +75,13 @@ $(document).keydown(function(e){ }); +$(document).keydown(function(e){ + if( e.which === 76 && e.ctrlKey && e.shiftKey ){ + console.log('control + shift + l'); + window.location = "/{{ .Title }}/list"; + } +}); +