Index: content/public/android/java/src/org/chromium/content/browser/ContentVideoViewLegacy.java |
diff --git a/content/public/android/java/src/org/chromium/content/browser/ContentVideoViewLegacy.java b/content/public/android/java/src/org/chromium/content/browser/ContentVideoViewLegacy.java |
index d628fcf24b83e97f85a720a34549d29769d14d2d..f7d1577f12f2c90d98460711efff0ae744330045 100644 |
--- a/content/public/android/java/src/org/chromium/content/browser/ContentVideoViewLegacy.java |
+++ b/content/public/android/java/src/org/chromium/content/browser/ContentVideoViewLegacy.java |
@@ -127,8 +127,8 @@ public class ContentVideoViewLegacy extends ContentVideoView { |
} else { |
toggleMediaControlsVisiblity(); |
} |
- } else if (keyCode == KeyEvent.KEYCODE_BACK && |
- event.getAction() == KeyEvent.ACTION_UP) { |
+ } else if ((keyCode == KeyEvent.KEYCODE_BACK || keyCode == KeyEvent.KEYCODE_ESCAPE) |
+ && event.getAction() == KeyEvent.ACTION_UP) { |
exitFullscreen(false); |
return true; |
} else if (keyCode == KeyEvent.KEYCODE_MENU || keyCode == KeyEvent.KEYCODE_SEARCH) { |