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

Unified Diff: chrome/browser/resources/media_router/media_router.js

Issue 1800213002: [Media Router WebUI] Update ESC handling. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 4 years, 9 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 | « chrome/browser/resources/media_router/elements/media_router_container/media_router_container.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/media_router/media_router.js
diff --git a/chrome/browser/resources/media_router/media_router.js b/chrome/browser/resources/media_router/media_router.js
index ad80da1c8907a7f3cbc23afabf14c04ae9490237..916a427fe6a254a3743e22ee2e95d96a881574f2 100644
--- a/chrome/browser/resources/media_router/media_router.js
+++ b/chrome/browser/resources/media_router/media_router.js
@@ -56,14 +56,6 @@ cr.define('media_router', function() {
container.addEventListener('start-casting-to-route-click',
onStartCastingToRouteClick);
- // Pressing the ESC key closes the dialog.
- document.addEventListener('keydown', function(e) {
- if (e.keyCode == media_router.KEYCODE_ESC) {
- container.maybeReportUserFirstAction(
- media_router.MediaRouterUserAction.CLOSE);
- }
- });
-
window.addEventListener('blur', onWindowBlur);
}
« no previous file with comments | « chrome/browser/resources/media_router/elements/media_router_container/media_router_container.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698