summaryrefslogtreecommitdiffstats
path: root/js/app/directives/itemshortcuts.coffee
diff options
context:
space:
mode:
authorAlessandro Cosentino <cosenal@gmail.com>2013-05-12 17:59:47 -0400
committerAlessandro Cosentino <cosenal@gmail.com>2013-05-12 17:59:47 -0400
commit9acb57e21e4d06a2b786131a3a60e38f86639c12 (patch)
tree1fde52a688a4a6efdb2b0ed72cb5fc4b47ae81ae /js/app/directives/itemshortcuts.coffee
parent4f186b0987e88d84671e979783ed25618239d9b6 (diff)
adds shortcut to star and jump
Diffstat (limited to 'js/app/directives/itemshortcuts.coffee')
-rw-r--r--js/app/directives/itemshortcuts.coffee5
1 files changed, 4 insertions, 1 deletions
diff --git a/js/app/directives/itemshortcuts.coffee b/js/app/directives/itemshortcuts.coffee
index 3ddcda37c..9045ea949 100644
--- a/js/app/directives/itemshortcuts.coffee
+++ b/js/app/directives/itemshortcuts.coffee
@@ -106,8 +106,11 @@ angular.module('News').directive 'itemShortcuts', ['$window', ($window) ->
# s or i or l
else if e.keyCode == 73 or e.keyCode == 83 or e.keyCode == 76
starCurrentItem(scrollArea)
-
+ # h
+ else if e.keyCode == 72
+ starCurrentItem(scrollArea)
+ jumpToNextItem(scrollArea)
] \ No newline at end of file