mirror of
https://github.com/apache/cordova-android.git
synced 2025-02-22 08:53:24 +08:00
CB-3068: Android menu not appearing as actionoverflow
This commit is contained in:
parent
a001d8cfb7
commit
cb07fe395c
@ -672,8 +672,10 @@ public class CordovaWebView extends WebView {
|
|||||||
InputMethodManager imm = (InputMethodManager) cordova.getActivity().getSystemService(Context.INPUT_METHOD_SERVICE);
|
InputMethodManager imm = (InputMethodManager) cordova.getActivity().getSystemService(Context.INPUT_METHOD_SERVICE);
|
||||||
imm.hideSoftInputFromWindow(childView.getWindowToken(), 0);
|
imm.hideSoftInputFromWindow(childView.getWindowToken(), 0);
|
||||||
cordova.getActivity().openOptionsMenu();
|
cordova.getActivity().openOptionsMenu();
|
||||||
|
return true;
|
||||||
|
} else {
|
||||||
|
return super.onKeyDown(keyCode, event);
|
||||||
}
|
}
|
||||||
return true;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return super.onKeyDown(keyCode, event);
|
return super.onKeyDown(keyCode, event);
|
||||||
|
Loading…
Reference in New Issue
Block a user