From 19bab14274f516091b1985d44709f0ad678771c9 Mon Sep 17 00:00:00 2001 From: Bernhard Posselt Date: Thu, 3 Apr 2014 23:59:42 +0200 Subject: Don't prevent shortcuts if a button (starred icon for instance) is focused (theres no input for buttons anyways), fix #497 --- js/public/app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'js/public') diff --git a/js/public/app.js b/js/public/app.js index 57306e34a..5982ab587 100644 --- a/js/public/app.js +++ b/js/public/app.js @@ -327,7 +327,7 @@ License along with this library. If not, see . return $($window.document).keydown(function(e) { var focused, scrollArea; focused = $(':focus'); - if (!(focused.is('input') || focused.is('select') || focused.is('textarea') || focused.is('checkbox') || focused.is('button'))) { + if (!(focused.is('input') || focused.is('select') || focused.is('textarea') || focused.is('checkbox'))) { if (!(e.shiftKey || e.altKey || e.ctrlKey || e.metaKey)) { scrollArea = elm; if (e.keyCode === 74 || e.keyCode === 39 || e.keyCode === 78) { -- cgit v1.2.3