Project: moodle
Issue MDL-44101: Create generic way for Widgets to focus on something when they close
Ideally, when a dialogue is closed, it should focus on the item which opened it, or another appropriate contextual item. This is a fairly generic thing to do so we should try and make this easy for everyone by creating a module which any widget can plug into.
Story points: 13