There is no generic solution for focus stealing, but you can use WinFocusMon to find out which program is stealing focus from your application. \ Note these things:

...may want a faster polling rate. 30ms should be enough and work around accidentally focusing a window by clicking the mouse (while that window did not steal it in the...

Best results in other decks

If your mouse pointer hovers the file list, the main window is focused when the list is being replaced (or simply when it shrinks and your mouse pointer...

...is then outside of the result list). When focusing the main window, the "find file" dialog closes. That would usually be fine, but we don't want to focus the...

var Autofocus = { supported: function() { return 'autofocus' in document.createElement('input'); }, fake: function() { $('[autofocus]').focus(); }, extend: function() { Autofocus.supported() || Autofocus.fake(); } }; $(Autofocus.extend...

Search in all decks