ipython/ipython — pull request #5121 by minrk (2014-02-13 18:51:46+00:00)
Title: fix remove event in KeyboardManager.register_events

only call enable on remove when focused.

fixes a bug where command mode could be entered inappropriately when non-focused elements are removed from the page (see first `@interact` example).