From b6c2c963ad681ca8f86b2a7f6d09eb566d56c540 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Wed, 27 Mar 2013 16:34:06 +0400 Subject: if hotkey is handled, return false --- js/tt-rss.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'js') diff --git a/js/tt-rss.js b/js/tt-rss.js index 8ba8f6bcf..6fdb8ff55 100644 --- a/js/tt-rss.js +++ b/js/tt-rss.js @@ -254,7 +254,7 @@ function init() { onComplete: function(transport) { backend_sanity_check_callback(transport); } }); - + hotkey_actions["next_feed"] = function() { var rv = dijit.byId("feedTree").getNextFeed( getActiveFeedId(), activeFeedIsCat()); @@ -833,7 +833,11 @@ function hotkey_handler(e) { } var action = hotkey_actions[hotkey_action]; - if(action != null) action(); + + if (action != null) { + action(); + return false; + } } catch (e) { exception_error("hotkey_handler", e); -- cgit v1.2.3