Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

请问FMXUI中,在安卓下,最终按back键退出APP时,如何实现不直接退出APP #66

Open
wfymqj opened this issue Mar 19, 2024 · 1 comment

Comments

@wfymqj
Copy link

wfymqj commented Mar 19, 2024

请问FMXUI中,在安卓下,最终按back键退出APP时,如何实现不直接退出APP。

我就是想实现比如说按10秒内按两次back键才退出APP,或是按back键,弹出对话框询问是否退出APP。
我在TFrame1.FrameKeyUp中拦截,没有效果。
在DoFinish中,把inherited注释掉,也不行。
在DoCanKeyFinish设置Result := False;,整个Frame就不响应back键了,也达不到目的。

@wfymqj
Copy link
Author

wfymqj commented Mar 22, 2024

我在TForm1.FormKeyUp中拦截,达到了效果

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant