if hotkey is handled, return false
This commit is contained in:
parent
2e2f672e55
commit
b6c2c963ad
|
@ -254,7 +254,7 @@ function init() {
|
||||||
onComplete: function(transport) {
|
onComplete: function(transport) {
|
||||||
backend_sanity_check_callback(transport);
|
backend_sanity_check_callback(transport);
|
||||||
} });
|
} });
|
||||||
|
|
||||||
hotkey_actions["next_feed"] = function() {
|
hotkey_actions["next_feed"] = function() {
|
||||||
var rv = dijit.byId("feedTree").getNextFeed(
|
var rv = dijit.byId("feedTree").getNextFeed(
|
||||||
getActiveFeedId(), activeFeedIsCat());
|
getActiveFeedId(), activeFeedIsCat());
|
||||||
|
@ -833,7 +833,11 @@ function hotkey_handler(e) {
|
||||||
}
|
}
|
||||||
|
|
||||||
var action = hotkey_actions[hotkey_action];
|
var action = hotkey_actions[hotkey_action];
|
||||||
if(action != null) action();
|
|
||||||
|
if (action != null) {
|
||||||
|
action();
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
exception_error("hotkey_handler", e);
|
exception_error("hotkey_handler", e);
|
||||||
|
|
Loading…
Reference in New Issue