]> git.wh0rd.org - tt-rss.git/commitdiff
if hotkey is handled, return false
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Wed, 27 Mar 2013 12:34:06 +0000 (16:34 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Wed, 27 Mar 2013 12:34:06 +0000 (16:34 +0400)
js/tt-rss.js

index 8ba8f6bcf3921144d9e0ab9afd689783c4401a77..6fdb8ff551f044812bd98dee0fbdb1af13750519 100644 (file)
@@ -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);