Make add widgets sidebar ask for focus after drag and drop
Since the sidebar only closes when it loses focus, but there's an exception during a drag and drop, it might get stuck open. Immediately reclaiming focus will make sure it closes.
Example to test with:
- Right click on a panel, click "add widgets"
- open panel edit mode
- sidebar closes!
But:
- Right click on a panel, click "add widgets"
- drag and drop a widget to the panel
- open panel edit mode
- sidebar does not close :-(
With this MR it closes.
Edited by Niccolò Venerandi