From 025cbba00f3f026d0d8cc4b81e6cf9bf4376f562 Mon Sep 17 00:00:00 2001 From: Bernhard Posselt Date: Thu, 25 Apr 2013 14:05:26 +0200 Subject: also use l for star (9gag, like) --- js/app/directives/itemshortcuts.coffee | 4 ++-- js/public/app.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/js/app/directives/itemshortcuts.coffee b/js/app/directives/itemshortcuts.coffee index 7c27b281a..3ddcda37c 100644 --- a/js/app/directives/itemshortcuts.coffee +++ b/js/app/directives/itemshortcuts.coffee @@ -103,8 +103,8 @@ angular.module('News').directive 'itemShortcuts', ['$window', ($window) -> else if e.keyCode == 85 keepUnreadCurrentItem(scrollArea) - # s or i - else if e.keyCode == 73 or e.keyCode == 83 + # s or i or l + else if e.keyCode == 73 or e.keyCode == 83 or e.keyCode == 76 starCurrentItem(scrollArea) diff --git a/js/public/app.js b/js/public/app.js index 18aadc4c7..01bb7cbae 100644 --- a/js/public/app.js +++ b/js/public/app.js @@ -232,7 +232,7 @@ License along with this library. If not, see . return jumpToPreviousItem(scrollArea); } else if (e.keyCode === 85) { return keepUnreadCurrentItem(scrollArea); - } else if (e.keyCode === 73 || e.keyCode === 83) { + } else if (e.keyCode === 73 || e.keyCode === 83 || e.keyCode === 76) { return starCurrentItem(scrollArea); } } -- cgit v1.2.3