diff --git a/js/ui/main.js b/js/ui/main.js index eeb83c9b1..9f1697df2 100644 --- a/js/ui/main.js +++ b/js/ui/main.js @@ -742,8 +742,7 @@ export function popModal(grab) { if (record.prevFocus) record.prevFocus.disconnect(record.prevFocusDestroyId); actionMode = record.actionMode; - if (global.stage.key_focus === record.actor) - global.stage.set_key_focus(record.prevFocus); + global.stage.set_key_focus(record.prevFocus); } else { // If we have: // global.stage.set_focus(a);