1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-20 23:28:06 +02:00

[OverlayManager] Add preventDefault to the keydown event handler

This commit is contained in:
Jonas Jenwald 2014-05-27 23:48:02 +02:00
parent 2a51b735fc
commit 164535fa93

View file

@ -128,6 +128,7 @@ var OverlayManager = {
var self = OverlayManager;
if (self.active && evt.keyCode === 27) { // Esc key.
self._closeThroughCaller();
evt.preventDefault();
}
},