When you had a cell editor focused but executed a command which changed the selection, further commands would not work because the cell editor blurred itself and so the widget itself was not focused anymore.
How to test
Best to test is with the shift+enter
Open a notebook with at least two code cells.
Focus the text of the first cell
shift+enter
cell should execute and the next cell should be selected (without focusing the text)
another shift+enter
next cell should be selected or created
Step 5 was broken because widget focus was lost previous to this fix
Follow-ups
Review checklist
[x] As an author, I have thoroughly tested my changes and carefully followed the review guidelines
What it does
When you had a cell editor focused but executed a command which changed the selection, further commands would not work because the cell editor blurred itself and so the widget itself was not focused anymore.
How to test
Best to test is with the shift+enter
Step 5 was broken because widget focus was lost previous to this fix
Follow-ups
Review checklist
Reminder for reviewers