diff --git a/IPython/frontend/html/notebook/static/js/notebook.js b/IPython/frontend/html/notebook/static/js/notebook.js
index 1f49204..252eb2a 100644
--- a/IPython/frontend/html/notebook/static/js/notebook.js
+++ b/IPython/frontend/html/notebook/static/js/notebook.js
@@ -130,6 +130,7 @@ var IPython = (function (IPython) {
} else if (event.which === key.ESC) {
// Intercept escape at highest level to avoid closing
// websocket connection with firefox
+ that.element.trigger('collapse_pager');
event.preventDefault();
} else if (event.which === key.SHIFT) {
// ignore shift keydown