##// END OF EJS Templates
ESC should be handled by CM if tooltip is not on
Takeshi Kanmae -
Show More
@@ -179,8 +179,12 b' var IPython = (function (IPython) {'
179 179 return true;
180 180 };
181 181 } else if (event.which === key.ESC) {
182 if (!IPython.tooltip._hidden) {
182 183 IPython.tooltip.remove_and_cancel_tooltip(true);
183 184 return true;
185 } else {
186 return false;
187 }
184 188 } else if (event.which === key.DOWNARROW && event.type === 'keydown') {
185 189 // If we are not at the bottom, let CM handle the down arrow and
186 190 // prevent the global keydown handler from handling it.
General Comments 0
You need to be logged in to leave comments. Login now