-
-
Notifications
You must be signed in to change notification settings - Fork 114
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Presssing Esc/Enter in popups closes dialog #316
Comments
I feel somewhat reluctant using |
I think you need to go with 1 here.
The key word here is "user agent," i.e. the browser. In other words, |
async triageQuestion(id) =>{
respondSameDay()
let response = await getResponseFromOP( { timeout : fromYears(5) } )
if(!response) {
closeQuestion(id,randomReason())
}
} |
I'm submitting a feature request
1.0.0-rc.1.0.3
Please tell us about your environment:
Operating System:
Windows 10
Node Version:
8.1.2
5.0.6
webpack 3.0.0
Browser:
Chrome 59
Language:
TypeScript 2.2
Current behavior:
If I have a popup open in my dialog and I press Escape or Enter to close it then the dialog itself gets closed too.
Expected/desired behavior:
Only the popup should close; the dialog itself should stay open.
I can think of two ways of achieving this:
Option 1 seems rather heavy handed as elements higher up the tree don't even get to find out that the event has happened. Option 2 requires a more cooperative approach, but wouldn't break any other code expecting to receive events.
The text was updated successfully, but these errors were encountered: