1
0
Fork 0
mirror of https://github.com/Yetangitu/owncloud-apps.git synced 2025-10-02 14:49:17 +02:00

files_reader: more changes towards full PDF functionality

This commit is contained in:
frankdelange 2017-03-25 19:39:03 +01:00
parent 1b1a2bea9a
commit e7f4760993
20 changed files with 308 additions and 127 deletions

View file

@ -11,7 +11,9 @@ PDFJS.reader.ReaderController = function(book) {
$container = $("#container"),
$fullscreen = $("#fullscreen"),
$bookmark = $("#bookmark"),
$note = $("#note");
$note = $("#note"),
$rotate_left = $("#rotate_left"),
$rotate_right = $("#rotate_right");
var reader = this,
book = this.book,
@ -93,9 +95,6 @@ PDFJS.reader.ReaderController = function(book) {
case 'bookmark':
$bookmark.click();
break;
case 'reflow':
$sidebarReflow.click();
break;
case 'toggleTitlebar':
reader.ControlsController.toggle();
break;
@ -114,6 +113,15 @@ PDFJS.reader.ReaderController = function(book) {
case 'toggleDay':
$use_custom_colors.click();
break;
case 'rotateLeft':
$rotate_left.click();
break;
case 'rotateRight':
$rotate_right.click();
break;
case 'toggleZoom':
// TODO
break;
default:
console.log("unsupported keyCode: " + e.keyCode);
}