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

Side by Side Diff: chrome/browser/resources/extensions/chromeos/kiosk_apps.js

Issue 2059913002: Remove keyIdentifier usage in chrome/browser/resources/* (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix chromeos build Created 4 years, 6 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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 cr.define('extensions', function() { 5 cr.define('extensions', function() {
6 /** 6 /**
7 * Encapsulated handling of ChromeOS kiosk apps options page. 7 * Encapsulated handling of ChromeOS kiosk apps options page.
8 * @constructor 8 * @constructor
9 */ 9 */
10 function KioskAppsOverlay() { 10 function KioskAppsOverlay() {
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 errorBanner.classList.remove('visible'); 64 errorBanner.classList.remove('visible');
65 this.clearErrorTimer_ = null; 65 this.clearErrorTimer_ = null;
66 }.bind(this), 5000); 66 }.bind(this), 5000);
67 }, 67 },
68 68
69 /** 69 /**
70 * Handles keypressed event in the app id input element. 70 * Handles keypressed event in the app id input element.
71 * @private 71 * @private
72 */ 72 */
73 handleAppIdInputKeyPressed_: function(e) { 73 handleAppIdInputKeyPressed_: function(e) {
74 if (e.keyIdentifier == 'Enter' && e.target.value) 74 if (e.key == 'Enter' && e.target.value)
75 this.handleAddButtonClick_(); 75 this.handleAddButtonClick_();
76 }, 76 },
77 77
78 /** 78 /**
79 * Handles click event on the add button. 79 * Handles click event on the add button.
80 * @private 80 * @private
81 */ 81 */
82 handleAddButtonClick_: function() { 82 handleAddButtonClick_: function() {
83 var appId = $('kiosk-app-id-edit').value; 83 var appId = $('kiosk-app-id-edit').value;
84 if (!appId) 84 if (!appId)
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 }; 138 };
139 139
140 // Export 140 // Export
141 return { 141 return {
142 KioskAppsOverlay: KioskAppsOverlay 142 KioskAppsOverlay: KioskAppsOverlay
143 }; 143 };
144 }); 144 });
145 145
146 <include src="kiosk_app_list.js"> 146 <include src="kiosk_app_list.js">
147 <include src="kiosk_app_disable_bailout_confirm.js"> 147 <include src="kiosk_app_disable_bailout_confirm.js">
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698