diff options
author | Bernhard Posselt <dev@bernhard-posselt.com> | 2014-04-03 23:59:42 +0200 |
---|---|---|
committer | Bernhard Posselt <dev@bernhard-posselt.com> | 2014-04-03 23:59:42 +0200 |
commit | 19bab14274f516091b1985d44709f0ad678771c9 (patch) | |
tree | 28883f0b151c10cfca22f18a3ac201a547b30bd6 /js/app/directives/itemshortcuts.coffee | |
parent | 4ab9494fc90d9131afd50048369b92c2e47a9b6a (diff) |
Don't prevent shortcuts if a button (starred icon for instance) is focused (theres no input for buttons anyways), fix #497
Diffstat (limited to 'js/app/directives/itemshortcuts.coffee')
-rw-r--r-- | js/app/directives/itemshortcuts.coffee | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/js/app/directives/itemshortcuts.coffee b/js/app/directives/itemshortcuts.coffee index 49dc75b37..8eec1bf0a 100644 --- a/js/app/directives/itemshortcuts.coffee +++ b/js/app/directives/itemshortcuts.coffee @@ -102,8 +102,7 @@ angular.module('News').directive 'itemShortcuts', ['$window', ($window) -> if not (focused.is('input') or focused.is('select') or focused.is('textarea') or - focused.is('checkbox') or - focused.is('button')) + focused.is('checkbox')) # activate shortcuts only if modifier keys are not pressed if not(e.shiftKey or e.altKey or e.ctrlKey or e.metaKey) |