From 86f3ae0c914c2ce807b7c47629967a4c2bcb925f Mon Sep 17 00:00:00 2001 From: Annabel Dunstone Gray Date: Thu, 30 Mar 2017 10:46:27 -0500 Subject: [PATCH] Change todos shortcut to shift --- app/assets/javascripts/shortcuts.js | 3 +++ app/views/help/_shortcuts.html.haml | 7 ++++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/app/assets/javascripts/shortcuts.js b/app/assets/javascripts/shortcuts.js index 4a09cdfe99f..ac895bcee47 100644 --- a/app/assets/javascripts/shortcuts.js +++ b/app/assets/javascripts/shortcuts.js @@ -31,6 +31,9 @@ $('.global-dropdown-toggle').trigger('click'); }); + Mousetrap.bind('shift+t', function() { + return ShortcutsDashboardNavigation.findAndFollowLink('.shortcuts-todos'); + }); Mousetrap.bind('shift+a', function() { return ShortcutsDashboardNavigation.findAndFollowLink('.dashboard-shortcuts-activity'); }); diff --git a/app/views/help/_shortcuts.html.haml b/app/views/help/_shortcuts.html.haml index a20d3e3a235..0281fb5a98b 100644 --- a/app/views/help/_shortcuts.html.haml +++ b/app/views/help/_shortcuts.html.haml @@ -97,7 +97,12 @@ %tbody.hidden-shortcut.project{ style: 'display:none' } %tr %th - %th Global Dashboard + %th Global Shortcuts + %tr + %td.shortcut + .key shift t + %td + Go to todos %tr %td.shortcut .key shift a