command-bar: restore focus when leaving command bar