Fix focus issues when focusing away from a notebook in edit mode.
To see the problem, edit a cell in a notebook, then click on the command palette search box. The focus does not end up at the search box, but instead ends up on the notebook node.
Perhaps the one setting the mode should be in charge of setting the focus?