Skip to content

Add "will-navigate" event#931

Merged
zcbenz merged 5 commits into
masterfrom
will-navigate
Dec 17, 2014
Merged

Add "will-navigate" event#931
zcbenz merged 5 commits into
masterfrom
will-navigate

Conversation

@zcbenz
Copy link
Copy Markdown
Contributor

@zcbenz zcbenz commented Dec 17, 2014

The will-navigate event is emitted when user or the page wants to start an navigation, it can happen when window.location object is changed or user clicks a link in the page or user drags a file to the window to open it.

By calling event.preventDefault() the navigation will be prevented, which can be used to prevent the window to open the file when users drag files to window, fixes #908.

zcbenz added a commit that referenced this pull request Dec 17, 2014
@zcbenz zcbenz merged commit c01e3cf into master Dec 17, 2014
@zcbenz zcbenz deleted the will-navigate branch December 17, 2014 23:27
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

Successfully merging this pull request may close these issues.

Can't prevent dropped file from opening in Window

1 participant