esc collapse pager

This commit is contained in:
Matthias BUSSONNIER 2012-05-07 12:36:18 +02:00
parent 976c433fe4
commit 785fbd9d9a

View File

@ -76,6 +76,7 @@ var IPython = (function (IPython) {
} else if (event.which === 27) {
// Intercept escape at highest level to avoid closing
// websocket connection with firefox
IPython.pager.collapse();
event.preventDefault();
}
if (event.which === 38 && !event.shiftKey) {