added left-key and right-key handler to the code file view for a pdf document
This commit is contained in:
parent
6e83bd7029
commit
f09fde59c7
@ -330,6 +330,16 @@ $(function () {
|
||||
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): ?>
|
||||
|
Loading…
Reference in New Issue
Block a user