summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2013-03-27 16:34:06 +0400
committerAndrew Dolgov <[email protected]>2013-03-27 16:34:06 +0400
commitb6c2c963ad681ca8f86b2a7f6d09eb566d56c540 (patch)
tree6a7812c2a80b8a476130772d7ea0ed50aab8bbb6 /js
parent2e2f672e559c4a605288992e7097cb2daff3ddcb (diff)
if hotkey is handled, return false
Diffstat (limited to 'js')
-rw-r--r--js/tt-rss.js8
1 files changed, 6 insertions, 2 deletions
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);