Skip to content

Make add widgets sidebar ask for focus after drag and drop

Niccolò Venerandi requested to merge work/niccolove/sidebarwantsfocus into master

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.

BUG:488571

Edited by Niccolò Venerandi

Merge request reports

Loading