[英]Back button event is not fired after soft keyboard hide event
I am developing an application, where there is a log-in page and I have included 我正在开发一个应用程序,该应用程序有一个登录页面,并且包含了
document.addEventListener("backbutton", handleBackButton, false);
function handleBackButton() {
}
to handle back button event which works perfectly fine, but when I click on any input field softkeyboard is shown up and on pressing the back back button the key board gets down but when I click again on the back button the app crashes instead of calling the "handle backbutton" function 可以很好地处理后退按钮事件,但是当我单击任何输入字段软键盘时,当按下后退按钮时,键盘将下降,但是当我再次单击后退按钮时,应用程序崩溃而不是调用“后退按钮”功能
try this 尝试这个
@Override
public void onBackPressed() {
super.onBackPressed();
this.handleBackButton();
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.