mirror of
https://github.com/jupyter/notebook.git
synced 2025-01-06 11:35:24 +08:00
Merge pull request #7733 from minrk/esc-tooltip
prevent esc from bubbling up when dismissing tooltip
This commit is contained in:
commit
65540779ee
@ -329,6 +329,7 @@ define([
|
|||||||
// If we closed the tooltip, don't let CM or the global handlers
|
// If we closed the tooltip, don't let CM or the global handlers
|
||||||
// handle this event.
|
// handle this event.
|
||||||
event.codemirrorIgnore = true;
|
event.codemirrorIgnore = true;
|
||||||
|
event._ipkmIgnore = true;
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
return true;
|
return true;
|
||||||
} else if (event.keyCode === keycodes.tab && event.type === 'keydown' && event.shiftKey) {
|
} else if (event.keyCode === keycodes.tab && event.type === 'keydown' && event.shiftKey) {
|
||||||
|
Loading…
Reference in New Issue
Block a user