Pressing Escape Key on Open File Dialog Fires a JavaScript Key Press
<p>I have an HTML dialog set to remove itself when the escape key is pressed. I have a file field in the HTML dialog. If a user is using the system file dialog to select a file for the file field in the HTML dialog and presses escape, that event closes the system dialog and also passes the escape key event to the browser, which also closes the HTML dialog. I want the HTML dialog to stay open, and don't want that event to hit the browser.</p>

<p>How can I fix this?</p>

<p>More info: This behavior is in Firefox.</p>
