diff options
author | Samy Pessé <samypesse@gmail.com> | 2014-04-03 15:24:57 -0700 |
---|---|---|
committer | Samy Pessé <samypesse@gmail.com> | 2014-04-03 15:24:57 -0700 |
commit | c934238f3d877e7f774a4b9ec4f33a5342e3914b (patch) | |
tree | 0b03fab93550cfc93cdaa971d2fc222aa8f08e67 /assets/javascript/app.js | |
parent | ab489599688f53df5cb53c1661c53e5e320269ad (diff) | |
download | gitbook-c934238f3d877e7f774a4b9ec4f33a5342e3914b.zip gitbook-c934238f3d877e7f774a4b9ec4f33a5342e3914b.tar.gz gitbook-c934238f3d877e7f774a4b9ec4f33a5342e3914b.tar.bz2 |
Fix #9: add keyboard navigation using right/left
Diffstat (limited to 'assets/javascript/app.js')
-rw-r--r-- | assets/javascript/app.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/assets/javascript/app.js b/assets/javascript/app.js index f1ba529..b96ce99 100644 --- a/assets/javascript/app.js +++ b/assets/javascript/app.js @@ -5,10 +5,11 @@ require([ "utils/sharing", "core/state", + "core/keyboard", "core/exercise", "core/progress", "core/sidebar" -], function($, storage, analytic, sharing, _state, exercise, progress, sidebar){ +], function($, storage, analytic, sharing, _state, keyboard, exercise, progress, sidebar){ $(document).ready(function() { var state = _state(); var $book = state.$book; @@ -22,6 +23,9 @@ require([ // Init sidebar sidebar.init(); + // Init keyboard + keyboard.init(); + // Star and watch count $.getJSON("https://api.github.com/repos/"+state.githubId) .done(function(repo) { |