Skip to content
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

Accept prompts by pressing return key. #115

Open
gtarsia opened this issue Sep 15, 2014 · 1 comment
Open

Accept prompts by pressing return key. #115

gtarsia opened this issue Sep 15, 2014 · 1 comment

Comments

@gtarsia
Copy link

gtarsia commented Sep 15, 2014

When a prompt opens, for example when you go to "Save As", pressing return should "Accept" the prompt, but doesn't respond.

In the code the prompts are done with DOM prompt() function, which is rendered this way in nodewebkit (in chrome the prompt lets you Accept with return). Is there a way to change this behaviour? Should it use a not native prompt instead?

@jbaron
Copy link
Owner

jbaron commented Sep 15, 2014

I think indeed the nice way is not to use native prompts, giving much more control. However this will take some more effort since it will means that the code will go from synchronous to asynchronous (like a callback or promise) based on the output of the prompt.

@jbaron jbaron added this to the Version 2.0 milestone Sep 15, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants