How to check whether "File open..." window is open with javascript?
<p>I have an keyup handler. I want something to happen every time I press ESC <em>except</em> when I'm inside a "Choose File..." window.</p>

<p>Here is a jQuery sample code of what I need:</p>

<pre><code>$(document).bind('keyup', function(e) {
    if (e.keyCode == 27) {
        if (!IsChooseFileDialogBoxOpen())
            doSomething();
    }
});
</code></pre>

<p>How can I do that?</p>

<p>Thanks</p>
