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

alert(), prompt() and confirm() have odd autofocus and keyboard shortcuts.. #1123

Closed
bodhiBit opened this issue Sep 17, 2013 · 9 comments
Closed

Comments

@bodhiBit
Copy link

whenever I call alert(), it autofocuses on [OK] fine, but I can only trigger it with the Space key, not Enter or Esc..

On prompt() it autofocuses on [OK] when it should focus on the text field.. I cannot move the focus with keyboard, only press Space to return "".

On confirm() it autofocuses on [Cancel] when it should focus on [OK].. Again I cannot move the focus with keyboard, only press Space to return false.

I'm running Windows 8 Pro..

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

@richardcypher
Copy link
Contributor

I just reproduced it on windows7 with node-webkit-v0.7.3

@gabemart
Copy link

I am also struggling with this on 0.7.2 with win8, specifically the issue with prompt() not focusing on the text field, which seems like it would be pretty annoying for the user.

@alfa256
Copy link

alfa256 commented Jan 15, 2014

This still happens on node-webkit-v0.8.4 on windows 7.

@as3boyan
Copy link

Same not focused prompt on node-webkit 0.92 on Windows. Probably I will have to use something like http://bootboxjs.com/.

@syegulalp
Copy link

I am having the same problems. When alert() is called, the resulting dialog does not seem to have focus. I have to manually select it, and after OK'ing it the main window doesn't have focus anymore, so I have to manually click on it to give it focus. (Chrome itself doesn't do this, interestingly.)

@as3boyan
Copy link

as3boyan commented Apr 1, 2014

@syegulalp you can use Bootbox or Alertify as replacement, they have dialogs for prompt/alert/confirm and much more

@tlgreg
Copy link

tlgreg commented Apr 25, 2014

I confirm the opening post, exactly the same with v0.9.2 on win7.

@alfa256
Copy link

alfa256 commented Oct 28, 2014

👍

@nwjs-bot
Copy link

This should be working with latest version now.

In 0.13 we changed to an optimized architecture so more features can be supported, see http://nwjs.io/blog/whats-new-in-0.13/ and it's good for keeping up with Chromium upstream -- we released with Node.js v6.0 and new Chromium versions within 1 day after upstream release.

The new version would fixed many issues reported here and we're scrubbing them. This issue is closed as we believe it should be fixed. Please leave a message if it isn't and we'll reopen it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants