Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(79)

Unified Diff: content/public/android/java/src/org/chromium/content/browser/ContentVideoViewLegacy.java

Issue 439433004: Browser goes to the previous page when exiting fullscreen via escape(esc) key of BT keyboard (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: KeyEvent amended Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « AUTHORS ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..743fbeded66ea0d4d649dff93e400120b3595673 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
@@ -131,6 +131,10 @@ public class ContentVideoViewLegacy extends ContentVideoView {
event.getAction() == KeyEvent.ACTION_UP) {
exitFullscreen(false);
return true;
+ } else if (keyCode == KeyEvent.KEYCODE_ESCAPE &&
+ event.getAction() == KeyEvent.ACTION_UP) {
+ exitFullscreen(false);
+ return true;
} else if (keyCode == KeyEvent.KEYCODE_MENU || keyCode == KeyEvent.KEYCODE_SEARCH) {
return true;
}
« no previous file with comments | « AUTHORS ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698