From 8e20f8d848f8223117a4a4f15ef3646733783360 Mon Sep 17 00:00:00 2001 From: Min RK Date: Tue, 10 Feb 2015 17:09:28 -0800 Subject: [PATCH] prevent esc from bubbling up when dismissing tooltip prevents esc from entering command mode when it's meant to dismiss the tooltip. The logic for the event was already there, it just lacked the `ipkmIgnore` bit. --- IPython/html/static/notebook/js/codecell.js | 1 + 1 file changed, 1 insertion(+) diff --git a/IPython/html/static/notebook/js/codecell.js b/IPython/html/static/notebook/js/codecell.js index 10c8bfdbd..ebc0b6236 100644 --- a/IPython/html/static/notebook/js/codecell.js +++ b/IPython/html/static/notebook/js/codecell.js @@ -329,6 +329,7 @@ define([ // If we closed the tooltip, don't let CM or the global handlers // handle this event. event.codemirrorIgnore = true; + event._ipkmIgnore = true; event.preventDefault(); return true; } else if (event.keyCode === keycodes.tab && event.type === 'keydown' && event.shiftKey) {