[Ide] Keep the widget focus when switching layouts

Fixes bug 16972 - Focus widget resets when switching layout
Add comment