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

Unified Diff: remoting/webapp/crd/js/ui_mode.js

Issue 1089493002: [Webapp Refactor] Re-add remoting.ConnectionStats. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Reviewer's feedback Created 5 years, 8 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 | « remoting/webapp/crd/js/toolbar.js ('k') | remoting/webapp/crd/js/window_frame.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/webapp/crd/js/ui_mode.js
diff --git a/remoting/webapp/crd/js/ui_mode.js b/remoting/webapp/crd/js/ui_mode.js
index 96a2021d8d19537fe23a5280d3b38ca3bc7ec0ad..4b6e40ca80af14574045f995344abdf52ed91cee 100644
--- a/remoting/webapp/crd/js/ui_mode.js
+++ b/remoting/webapp/crd/js/ui_mode.js
@@ -120,12 +120,7 @@ remoting.setMode = function(mode) {
remoting.updateModalUi(mode, 'data-ui-mode');
console.log('App mode: ' + mode);
remoting.currentMode = mode;
- if (mode == remoting.AppMode.IN_SESSION) {
- document.removeEventListener('keydown', remoting.ConnectionStats.onKeydown,
- false);
- } else {
- document.addEventListener('keydown', remoting.ConnectionStats.onKeydown,
- false);
+ if (mode !== remoting.AppMode.IN_SESSION) {
// TODO(jamiewalch): crbug.com/252796: Remove this once crbug.com/240772
// is fixed.
var scroller = document.getElementById('scroller');
« no previous file with comments | « remoting/webapp/crd/js/toolbar.js ('k') | remoting/webapp/crd/js/window_frame.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698