OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 'use strict'; | 5 'use strict'; |
6 | 6 |
7 | 7 |
8 /** | 8 /** |
9 * DefaultActionDialog contains a message, a list box, an ok button, and a | 9 * DefaultActionDialog contains a message, a list box, an ok button, and a |
10 * cancel button. | 10 * cancel button. |
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
148 this.onCancelClick_(event); | 148 this.onCancelClick_(event); |
149 event.preventDefault(); | 149 event.preventDefault(); |
150 } else if (event.keyCode == 32 || event.keyCode == 13) { | 150 } else if (event.keyCode == 32 || event.keyCode == 13) { |
151 this.onOkClick_(); | 151 this.onOkClick_(); |
152 event.preventDefault(); | 152 event.preventDefault(); |
153 } | 153 } |
154 }; | 154 }; |
155 | 155 |
156 return {DefaultActionDialog: DefaultActionDialog}; | 156 return {DefaultActionDialog: DefaultActionDialog}; |
157 }); | 157 }); |
OLD | NEW |