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

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

Issue 1824623004: [Media Router WebUI] Update ESC handling. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2661
Patch Set: 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 394e9bc8d7820d2600791037c24c4f2cbd38895a..255712fb5cd1025c2f9d43302fa5fea7c9d5b232 100644
--- a/chrome/browser/resources/media_router/media_router.js
+++ b/chrome/browser/resources/media_router/media_router.js
@@ -53,14 +53,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