From 83a5364903bfd68cd7a0d37dc4c2969427f86710 Mon Sep 17 00:00:00 2001 From: Tobias Umbach Date: Fri, 18 Aug 2017 08:39:49 +0200 Subject: [PATCH 1/2] Add missing shortcut help for 'r', refresh --- src/main/app/i18n/ar.js | 5 +++-- src/main/app/i18n/en.js | 5 +++-- src/main/app/templates/_shortcuts.html | 5 ++++- 3 files changed, 10 insertions(+), 5 deletions(-) diff --git a/src/main/app/i18n/ar.js b/src/main/app/i18n/ar.js index 343cc4fe..da476539 100644 --- a/src/main/app/i18n/ar.js +++ b/src/main/app/i18n/ar.js @@ -175,7 +175,8 @@ "font_size" : "increase/decrease font size of the current entry ", "go_to_all" : "go to the All view ", "go_to_starred" : "go to the Starred view ", - "feed_search" : "navigate to a subscription by entering the subscription name" + "feed_search" : "navigate to a subscription by entering the subscription name", + "refresh": "refresh" } } -} \ No newline at end of file +} diff --git a/src/main/app/i18n/en.js b/src/main/app/i18n/en.js index 55fa8a8f..cd4dafce 100644 --- a/src/main/app/i18n/en.js +++ b/src/main/app/i18n/en.js @@ -177,7 +177,8 @@ "font_size" : "increase/decrease font size of the current entry", "go_to_all" : "go to the All view", "go_to_starred" : "go to the Starred view", - "feed_search" : "navigate to a subscription by entering the subscription name" + "feed_search" : "navigate to a subscription by entering the subscription name", + "refresh": "refresh" } } -} \ No newline at end of file +} diff --git a/src/main/app/templates/_shortcuts.html b/src/main/app/templates/_shortcuts.html index eaa88018..507fe891 100644 --- a/src/main/app/templates/_shortcuts.html +++ b/src/main/app/templates/_shortcuts.html @@ -1,4 +1,7 @@
+
r
+
{{ 'about.shortcuts.refresh' | translate }}
+
j
{{ 'about.shortcuts.open_next_entry' | translate }}
@@ -68,4 +71,4 @@
{{ 'about.shortcuts.feed_search' | translate }}
-
\ No newline at end of file + From d178302d34cdd138e70400d99ec607ee133553d0 Mon Sep 17 00:00:00 2001 From: Tobias Umbach Date: Fri, 18 Aug 2017 08:40:05 +0200 Subject: [PATCH 2/2] Add comment so shortcut code is easier to find --- src/main/app/js/controllers.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/app/js/controllers.js b/src/main/app/js/controllers.js index 6e7c16c8..651203b2 100644 --- a/src/main/app/js/controllers.js +++ b/src/main/app/js/controllers.js @@ -1061,6 +1061,7 @@ module.controller('FeedListCtrl', [ } }; + // keyboard shortcuts Mousetrap.bind('j', function(e) { $scope.$apply(function() { $scope.navigationMode = 'keyboard';