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

Option to handle Back key #36

Closed
a-v-ebrahimi opened this issue Apr 1, 2015 · 2 comments
Closed

Option to handle Back key #36

a-v-ebrahimi opened this issue Apr 1, 2015 · 2 comments
Assignees
Milestone

Comments

@a-v-ebrahimi
Copy link

It would be nice to have an option to consume Back key event and don't pass it to rest of activity.

@orhanobut
Copy link
Owner

@Euphrates-Media That's a very good idea.

@orhanobut orhanobut self-assigned this Apr 11, 2015
@orhanobut orhanobut added this to the v1.3 milestone Apr 11, 2015
@orhanobut
Copy link
Owner

With v1.5, OnBackPressListener added, but still needs a trick. OnBackPressListener will be always triggered whether it is cancelable or not. Thus you can use cancelable=false and trigger the event.

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