From 45abfccbbcbfab047dd4f3996d9b4e1fec9e5825 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 Former-commit-id: 860eb54b7562072dba6bd21a1fbba69478ff4433 [formerly 47149319eb8c86db27b3e6b6c0d1193b0870edef] [formerly 445e8c1f0e7471d254ec5af2e887a72d0bfa3e06 [formerly cc5e53547f3d8b16e9b4c726ec0fb067ba2edb11 [formerly 23f64ed5c901d9975a41bdd89e2663f510d3d502]]] Former-commit-id: 42ca41fd02518c21258e84ed8877aba308615ab0 [formerly e39a7870a602b9a13bfd4f0f9a956d6323a441e3] Former-commit-id: 6a407d46140a7de3dc9a7350e67a374908d12b88 Former-commit-id: ef6daa5bf92a1898a8769d85a29539f7999fbd63 --- 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"; + } +}); +