preventing window blur/focusOut when selecting copy/paste menu

Posted by jedierikb on Stack Overflow See other posts from Stack Overflow or by jedierikb
Published on 2010-03-19T19:10:00Z Indexed on 2010/03/19 19:11 UTC
Read the original article Hit count: 243

I am trying to determine when the user has moved focus out of the browser to:

  • select copy/paste (but not to the google search box). Ffox handles this nicely.
  • selecting another window/tab/external widget (e.g., the google search box).

focusOut and blur listeners on window and document cannot seem to disambiguate between these two types of focus changes. Can IE do this?

I want this distinction so that I can better support usability in my web app without losing focus.

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about internet-explorer