templates/default/fulldoc/html/js/app.js in yard-0.5.3 vs templates/default/fulldoc/html/js/app.js in yard-0.5.4

- old
+ new

@@ -88,12 +88,24 @@ document.body.className = 'frames'; $('#menu .noframes a').attr('href', document.location); } } +function keyboardShortcuts() { + $(document).keypress(function(evt) { + if (evt.altKey || evt.ctrlKey || evt.metaKey || evt.shiftKey) return; + switch (evt.charCode) { + case 67: case 99: $('#class_list_link').click(); break; // 'c' + case 77: case 109: $('#method_list_link').click(); break; // 'm' + case 70: case 102: $('#file_list_link').click(); break; // 'f' + } + }); +} + $(framesInit); $(createSourceLinks); $(createDefineLinks); $(createFullTreeLinks); $(fixBoxInfoHeights); $(searchFrameLinks); $(linkSummaries); +$(keyboardShortcuts);