| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 /** | 5 /** |
| 6 * @fileoverview | 6 * @fileoverview |
| 7 * Class representing an entry in the host-list portion of the home screen. | 7 * Class representing an entry in the host-list portion of the home screen. |
| 8 */ | 8 */ |
| 9 | 9 |
| 10 'use strict'; | 10 'use strict'; |
| (...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 187 * @return {void} Nothing. | 187 * @return {void} Nothing. |
| 188 * @private | 188 * @private |
| 189 */ | 189 */ |
| 190 remoting.HostTableEntry.prototype.onKeydown_ = function(event) { | 190 remoting.HostTableEntry.prototype.onKeydown_ = function(event) { |
| 191 if (event.which == 27) { // Escape | 191 if (event.which == 27) { // Escape |
| 192 this.removeEditBox_(); | 192 this.removeEditBox_(); |
| 193 } else if (event.which == 13) { // Enter | 193 } else if (event.which == 13) { // Enter |
| 194 this.commitRename_(); | 194 this.commitRename_(); |
| 195 } | 195 } |
| 196 }; | 196 }; |
| OLD | NEW |