Skip to content

Commit

Permalink
Prevent g v and ? also from the keycodes
Browse files Browse the repository at this point in the history
  • Loading branch information
Philipp Hinrichsen committed Feb 5, 2016
1 parent 9d8749c commit 9b738c6
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/js/components/Marathon.jsx
Expand Up @@ -142,9 +142,12 @@ var Marathon = React.createClass({
}.bind(this));

Mousetrap.bind("g v", function () {
if (this.state.modal != null) {
return null;
}
DialogActions.alert({message:`You're running version ${config.version}.`,
title: "Marathon UI"});
});
}.bind(this));

Mousetrap.bind("shift+,", function () {
if (this.state.modal != null) {
Expand All @@ -155,7 +158,7 @@ var Marathon = React.createClass({

Mousetrap.bind("?", function () {
if (this.state.modal != null) {
this.handleModalDestroy();
return null;
}
router.transitionTo(router.getCurrentPathname(), {}, {modal: "help"});
}.bind(this));
Expand Down

0 comments on commit 9b738c6

Please sign in to comment.