twitter/bootstrap — Issue #2236: File input, modal and ESC key
Author: prof3ta
Created: 2012-02-24 15:59:41+00:00
State: open

* You have a "file input" contained in a modal.
* The user clicks "choose file" and the browsing dialog appears
* User changes his mind and click ESC to clos the browsing dialog
* The event is intercepted by the modal, which is closed
* User is irritated

A workaround is to set 'keyboard' to false for the modal, which still prevents the user to use ESC to close the modal.

The modal shouldn't listen for "ESC" events when another dialog is open.