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

Hijack back button on mobile to act as ESC key instead of previous page #1628

Open
TamirCode opened this issue May 8, 2024 · 1 comment
Open

Comments

@TamirCode
Copy link

TamirCode commented May 8, 2024

Summary

I am using android and I want a setting in the gallery popup so that when a person clicks back button, instead of going back to previous page, it will act as escape key and simply exit the gallery and remain on the same page.

Basic example

image

Motivation

this is important for a slick user experience, its the intuitive expected action in my opinion

for React

@TamirCode TamirCode changed the title Hijack back button on phone to act as escape key to gallery instead of previous page Hijack back button on mobile to act as ESC key instead of previous page May 8, 2024
@TamirCode
Copy link
Author

if anyone has temporary solution with the new nextjs approuter pls share

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