Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

OS X Lion keeps changing focus window away from browser, why?

Basically,


I just upgraded to Lion a day or two ago. I am finding that while I am typing in Firefox, the OS takes the focus out of the browser. So as I keep trying to type all I hear is a sound, (the sound that the keys I am pressing are invalid). This is very annoying, and I am not sliding my hand over the trackpad or anything like that. It seems to happen more when I am pausing for a second, and most importantly after pressing the enter key.


So my question is how to i disable this, or what the heck is going on. I never had this problem in Snow Leopard and to me is a huge inconvience.


My system is a MacBook Pro Jan 2011 Unibody, I really don't think more then that is relevant but I would be happy to submit it if it is.


Even in typing this it has happened more then five times in less then ten minutes. Any help is much appreciated.


Thank you,


Will Scardino

MacBook Pro, Mac OS X (10.7.1)

Posted on Sep 12, 2011 3:13 PM

Reply
6 replies

Feb 10, 2014 7:37 PM in response to Will Scardino

Hello fellow Mac users,


The root cause of this issue will be different for everyone as it’s usually some rogue app or process that isn’t working properly. In my case it was a Symantec utility called ‘SymUIAgent.app’.


Follow these steps to identify what specifically is causing the issue on your computer


  1. Save the code on this file to your desktop using the filename id_issue.py: https://gist.github.com/iMerica/8928556/raw/73832a509de4dc5394cf1747b997ea1bd1b0 ff4e/identify_focus_issue.py
  2. Open Terminal.app (Located in /Applications/Utilities)
  3. In Terminal, cd to your Desktop using cd ~/Desktop
  4. Run python id_issue.py and just let your computer sit for a few minutes (assuming the issue is happening within a few minutes/seconds).


Basically this code gets the current active window every three seconds and prints it as standard output which you can view in Terminal. Once you find the offending app, search on Google for specific steps on removing it.


I hope that helps!


Michael

OS X Lion keeps changing focus window away from browser, why?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.