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

Capture back&forward navigation mouse buttons and prevent navigation when editing script #1407

Open
AlCalzone opened this issue Sep 26, 2023 · 0 comments

Comments

@AlCalzone
Copy link
Collaborator

Is your feature request related to a problem? Please describe.
VSCode has the ability to navigate back and forth between recently edited code locations using the side buttons of the mouse. Doing this in the JS adapter is dangerous though as it will cause the browser to navigate and lose all edits made since the last save.

Describe the solution you'd like
Prevent navigation using the mouse buttons or at least ask the user if they want to navigate away.

Describe alternatives you've considered
None

Additional context
Losing half an hour worth of work because of one accidental button press is not nice.

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

1 participant