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

how to stop window reload on press F5 #664

Closed
dounai opened this issue Sep 23, 2014 · 2 comments
Closed

how to stop window reload on press F5 #664

dounai opened this issue Sep 23, 2014 · 2 comments

Comments

@dounai
Copy link

dounai commented Sep 23, 2014

I set the event "Keydown" or "Keypress" to document, but still can't stop that.
I don't think this Key should be set default, if some one want to use F5 to reload, he can use API "BrowserWindow.reload()".

@zcbenz zcbenz added the bug label Sep 23, 2014
@dounai
Copy link
Author

dounai commented Sep 24, 2014

I am so sorry, I found the window reload on press F5 only when the DevTool is enabled and focused.
However, when document focused, F1 to F12 not trigger "Keydown" or "Keypress" bound on doucument, the bug may be this.
There is no menu on my window, so i can't use "Accelerator".

@zcbenz
Copy link
Contributor

zcbenz commented Oct 14, 2014

I'm closing this because this is desired behavior of devtools. For the F1 to F12 not triggering keydown problem, please create a new issue with an example.

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

2 participants