diff options
Diffstat (limited to 'theme/javascript/core/keyboard.js')
-rwxr-xr-x | theme/javascript/core/keyboard.js | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/theme/javascript/core/keyboard.js b/theme/javascript/core/keyboard.js deleted file mode 100755 index 22fe953..0000000 --- a/theme/javascript/core/keyboard.js +++ /dev/null @@ -1,38 +0,0 @@ -define([ - "jQuery", - "Mousetrap", - "core/navigation", - "core/sidebar", - "core/search" -], function($, Mousetrap, navigation, sidebar, search){ - // Bind keyboard shortcuts - var init = function() { - // Next - Mousetrap.bind(['right'], function(e) { - navigation.goNext(); - return false; - }); - - // Prev - Mousetrap.bind(['left'], function(e) { - navigation.goPrev(); - return false; - }); - - // Toggle Summary - Mousetrap.bind(['s'], function(e) { - sidebar.toggle(); - return false; - }); - - // Toggle Search - Mousetrap.bind(['f'], function(e) { - search.toggle(); - return false; - }); - }; - - return { - init: init - }; -});
\ No newline at end of file |