From: Andrew Dolgov Date: Wed, 27 Mar 2013 12:34:06 +0000 (+0400) Subject: if hotkey is handled, return false X-Git-Tag: 1.7.6~241 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=b6c2c963ad681ca8f86b2a7f6d09eb566d56c540;p=tt-rss.git if hotkey is handled, return false --- diff --git a/js/tt-rss.js b/js/tt-rss.js index 8ba8f6bc..6fdb8ff5 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);