Returning focus to previously-focused window on hide


Hi there,

I’ve got a modal window that I bring up when I hit a global shortcut. When I hide the window (I’ve got a handler on the Esc key for this), I’d like to return the focus to whatever window was focused before (basically “returning” the focus). Is there any way to do this?

(A similar question is here, but without an answer.)



This is (obviously) a duplicate of the linked topic. We like to unify similar discussions under one topic so that people don’t have to read a bunch of different threads to get the whole story. Please continue the discussion there. I’ll be closing this topic as duplicate.


This topic was automatically closed 12 hours after the last reply. New replies are no longer allowed.