Skip to content
Browse files
fix: restore key event handlers when DOM element is fullscreen (#1157)
* GH-1156: Restore key event handlers when a DOM element is fullscreen

Make sure to call dispatchKeyEvent from base class in WrapperView, if
the event hasn't been handled by the engine.

* Remove unwanted whitespace in condition

Co-authored-by: エリス <>
Co-authored-by: Michael Goffioul <>
  • Loading branch information
3 people committed Mar 30, 2021
1 parent e8ec3b1 commit 6cbf69d109cccb2189537f27fa53bcf203490732
Showing 1 changed file with 6 additions and 1 deletion.
@@ -265,7 +265,12 @@ public WrapperView(Context context, CordovaWebViewEngine engine) {

public boolean dispatchKeyEvent(KeyEvent event) {
return engine.getView().dispatchKeyEvent(event);
boolean ret = engine.getView().dispatchKeyEvent(event);
if (!ret) {
// If the engine didn't handle the event, handle it normally.
ret = super.dispatchKeyEvent(event);
return ret;

0 comments on commit 6cbf69d

Please sign in to comment.