cats icon indicating copy to clipboard operation
cats copied to clipboard

Accept prompts by pressing return key.

Open gtarsia opened this issue 11 years ago • 1 comments

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?

gtarsia avatar Sep 15 '14 04:09 gtarsia

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 avatar Sep 15 '14 05:09 jbaron