Rob Wu
ce9400dc8b
Handle navigation keys when viewer is not focused
...
Restrict the scrollbar hack to the keycode for "spacebar",
since the bug only occurs in Firefox with spacebar.
Keyboard navigation is only activated for the spacebar if
the currently focused element is not a button.
2014-01-31 14:59:49 +01:00
Rob Wu
64a4a27455
Remove obsolete code from shortcut handler
...
These lines were introduced in 612f59aa10
when the only shortcuts were +/-/=/0 (to change zoom level).
Back then, when the input fields were focused, using these keys would
add these unwanted characters to the input field and change the zoom
level of the viewer. Having both operations at the same time was an
undesired event, so a check was inserted, to ignore shortcuts when
the toolbar is focused.
The #toolbar element doesn't exist any more, so these lines are obsolete.
2014-01-30 15:26:51 +01:00
Yury Delendik
acb33b3e7d
Merge pull request #4213 from nnethercote/strings
...
Create less garbage while parsing
2014-01-30 04:41:53 -08:00
Nicholas Nethercote
164d7a6e15
Don't create a string when lexing all-digit integers.
2014-01-29 18:22:09 -08:00
Nicholas Nethercote
b64cca0bef
When lexing numbers, look for digits first.
2014-01-29 18:20:53 -08:00
Nicholas Nethercote
c1ef7e4d63
Use Array.join instead of += to build up strings in the Lexer.
2014-01-29 18:19:58 -08:00
Yury Delendik
b4eceac826
Merge pull request #4209 from Rob--W/grab-to-pan-performance
...
Update Grab to pan to fix performance issue
2014-01-29 15:30:58 -08:00
Rob Wu
45c633b072
Update Grab to pan to fix performance issue
...
Reported at http://stackoverflow.com/questions/21392844/pdf-js-recalculating-problme
See also e0f893753a
Changes versus grab-to-pan.js: Moved inline style to viewer.css,
lowered z-index from 2e9 to 50000 (note to future maintainers:
make sure that all other z-index values stay below 50000!).
2014-01-30 00:16:25 +01:00
Tim van der Meij
3deea077ef
Merge pull request #4217 from Rob--W/fix-print-shortcut
...
Print shortcut: Ctrl + (Shift +) P only
2014-01-29 11:16:19 -08:00
Brendan Dahl
cda181f061
Merge pull request #4187 from Rob--W/issue-4183
...
Use forEach instead of for-in (was: Replace [] with {} in core/cmap)
2014-01-29 10:54:49 -08:00
Rob Wu
9df998914d
Print shortcut: Ctrl + (Shift +) P only
...
The previous version interfered with the full screen shortcut
(Ctrl + Alt + P).
The new version only intercepts Cmd/Ctrl + P (all browsers).
And Ctrl + Shift + P in Chrome / Opera (Presto and Chromium),
because these browsers also associate a Print operation with
the shortcut.
2014-01-29 18:38:42 +01:00
Yury Delendik
c5a804c43a
Merge pull request #4181 from nnethercote/compact-images
...
Reduce memory consumption of simple black and white images.
2014-01-28 15:53:46 -08:00
Nicholas Nethercote
a966909754
Reduce memory consumption of simple black and white images.
2014-01-28 14:36:47 -08:00
Brendan Dahl
c2e31cd1ef
Merge pull request #4205 from yurydelendik/blob-open-file
...
Using blob URL for open file
2014-01-28 14:15:35 -08:00
Brendan Dahl
0e000392ae
Merge pull request #4179 from yurydelendik/dataLoaded
...
Fixes PDFDocumentProxy.getDataLoaded API name (and refactoring)
2014-01-28 13:56:01 -08:00
Yury Delendik
e5e9c6e243
Fixes PDFDocumentProxy.getDownloadInfo API name (and refactoring)
2014-01-28 15:13:47 -06:00
Yury Delendik
d45d7bc161
Merge pull request #4200 from timvandermeij/ie-mousewheel
...
Implements mouse wheel behaviour for non-Firefox browsers
2014-01-28 11:56:16 -08:00
Tim van der Meij
b4b145507c
Implements mouse wheel behaviour for non-Firefox browsers
2014-01-28 20:52:25 +01:00
Yury Delendik
c45c9a7ffa
Merge pull request #4210 from yurydelendik/issue4131
...
Refactors nextPageMatch (nits)
2014-01-28 09:13:20 -08:00
Yury Delendik
48f0d0a131
Refactors nextPageMatch (nits)
2014-01-28 11:11:02 -06:00
Yury Delendik
187c9007ef
Merge pull request #4131 from karlden/findUnboundedRecursionBug960409
...
Fixes find functionality recursion (bugzilla FF bug 960409)
2014-01-28 06:44:42 -08:00
Brendan Dahl
59526a7cf1
Merge pull request #4189 from yurydelendik/split-pattern
...
Refactors shared/pattern.js into core/ and display/
2014-01-27 17:40:22 -08:00
Brendan Dahl
c2421c2897
Merge pull request #4201 from yurydelendik/smask-backdrop
...
Fixes smask backdrop
2014-01-27 11:16:37 -08:00
Yury Delendik
18515b8668
Using blob URL for open file
2014-01-27 13:11:02 -06:00
Yury Delendik
141669a318
Merge pull request #4194 from Rob--W/crx-pdf-embed
...
Support <embed type="application/pdf"> in Chromium extension
2014-01-27 07:26:13 -08:00
Yury Delendik
570c4f5660
Merge pull request #4203 from timvandermeij/outline-chrome
...
Removes button outline as visible in Chrome
2014-01-27 06:40:01 -08:00
Tim van der Meij
fa603af391
Removes button outline as visible in Chrome
2014-01-27 11:57:33 +01:00
Yury Delendik
48436b6a0f
Fixes smask backdrop
2014-01-26 22:35:56 -06:00
Yury Delendik
10b9824cd0
Merge pull request #4197 from Rob--W/firefox-verify-message-source
...
[security] Verify message source in Firefox add-on
2014-01-26 12:31:02 -08:00
Rob Wu
7bbff32a4d
[security] Verify message source in Firefox add-on
...
And put initPassiveLoading within a preprocessor block because
it is only used by Firefox.
2014-01-26 12:55:48 +01:00
Rob Wu
7f0fc8557e
[CRX] Support <embed type="application/pdf">
2014-01-26 00:33:06 +01:00
Yury Delendik
bf432a37bb
Refactors shared/pattern.js into core/ and display/
2014-01-25 12:18:22 -06:00
Rob Wu
2779bab03e
Use [].forEach instead of for-..-in in evaluator
...
To prevent errors whenever the array's prototype is extended.
(cmap is an array)
2014-01-25 18:04:33 +01:00
Yury Delendik
520fdf2f6a
Merge pull request #4180 from yurydelendik/jshint11
...
Use jshint 1.1.0
2014-01-23 15:37:47 -08:00
Yury Delendik
17dfc7c700
Use jshint v1.1
2014-01-23 17:32:07 -06:00
Yury Delendik
ffe42f580a
Merge pull request #4178 from peerlibrary/worker-loader
...
Allow fake worker loader with namespaced bundling of PDF.js
2014-01-23 15:14:07 -08:00
Mitar
9e8c75a7ff
Allow fake worker loader with namespaced bundling of PDF.js.
2014-01-23 14:33:17 -08:00
Tim van der Meij
3c6ac0dad5
Merge pull request #4161 from yurydelendik/smask
...
SMask emulation
2014-01-23 11:49:19 -08:00
Brendan Dahl
348d3a667b
Merge pull request #4173 from Rob--W/crx-remove-unused-file
...
Remove unused file from Chromium extension
2014-01-23 10:32:31 -08:00
Rob Wu
fa965269ea
Remove unused file from Chromium extension
...
extensions/chromium/patch-worker.js was already redundant
since edd4bae903
.
2014-01-23 19:26:23 +01:00
Yury Delendik
4054b0c385
SMask emulation
2014-01-23 11:13:32 -06:00
Yury Delendik
c80df604b9
Merge pull request #4170 from Snuffleupagus/document-properties-Swedish
...
Add Document Properties to the Swedish l10n
2014-01-23 04:49:32 -08:00
Jonas Jenwald
730e536b90
Add Document Properties to the Swedish l10n
2014-01-23 11:35:39 +01:00
Yury Delendik
0d5ee2a8de
Merge pull request #4169 from xavier114fch/zh-TW
...
zh-TW translation update for document properties
2014-01-22 19:39:20 -08:00
Xavier fung
e8239de897
zh-TW translation update for document properties
2014-01-23 10:43:40 +08:00
Yury Delendik
0049407762
Merge pull request #4168 from TheoChevalier/l10n-fr
...
Update fr locale
2014-01-22 15:55:41 -08:00
TheoChevalier
25ad893a25
Update fr locale
2014-01-23 00:50:14 +01:00
Yury Delendik
4a34556ccc
Merge pull request #4167 from timvandermeij/followup-document-properties
...
Miscellaneous improvements for the document properties dialog
2014-01-22 15:34:03 -08:00
Tim van der Meij
c952b6fb85
Miscellaneous improvements for the document properties dialog
2014-01-23 00:30:48 +01:00
Yury Delendik
5a6862decc
Merge pull request #4164 from Snuffleupagus/bug-957034-followup
...
Only check for line dash pattern when annotation has a visible border (bug 957034 followup)
2014-01-22 08:27:47 -08:00