added left-key and right-key handler to the code file view for a pdf document

This commit is contained in:
hyung-hwan 2016-03-17 09:30:04 +00:00
parent 6e83bd7029
commit f09fde59c7

View File

@ -330,6 +330,16 @@ $(function () {
queue_pdf_rendering_in_progress (pdf_page_num); queue_pdf_rendering_in_progress (pdf_page_num);
}); });
$(document).keydown (function(event) {
if (event.keyCode == 37)
{
on_prev_pdf_page();
}
else if (event.keyCode == 39)
{
on_next_pdf_page();
}
});
}); });
<?php elseif ($is_odf_file): ?> <?php elseif ($is_odf_file): ?>