[Pkg-javascript-commits] [pdf.js] 191/210: [OverlayManager] Add preventDefault to the keydown event handler

David Prévot taffit at moszumanska.debian.org
Thu Jun 5 14:21:17 UTC 2014


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch upstream
in repository pdf.js.

commit 164535fa93d4431e1be9f81f35ada51db96a2378
Author: Jonas Jenwald <jonas.jenwald at gmail.com>
Date:   Tue May 27 23:48:02 2014 +0200

    [OverlayManager] Add preventDefault to the keydown event handler
---
 web/overlay_manager.js | 1 +
 1 file changed, 1 insertion(+)

diff --git a/web/overlay_manager.js b/web/overlay_manager.js
index b320e56..81a0c0d 100644
--- a/web/overlay_manager.js
+++ b/web/overlay_manager.js
@@ -128,6 +128,7 @@ var OverlayManager = {
     var self = OverlayManager;
     if (self.active && evt.keyCode === 27) { // Esc key.
       self._closeThroughCaller();
+      evt.preventDefault();
     }
   },
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/pdf.js.git



More information about the Pkg-javascript-commits mailing list