From 23f64ed5c901d9975a41bdd89e2663f510d3d502 Mon Sep 17 00:00:00 2001 From: Zack Scholl Date: Wed, 10 Feb 2016 20:43:51 -0500 Subject: [PATCH] Added Ctl+Shift+L for list --- templates/index.tmpl | 14 ++++++++++---- templates/list.tmpl | 14 ++++++++++++++ templates/view.tmpl | 7 +++++++ 3 files changed, 31 insertions(+), 4 deletions(-) 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"; + } +}); +