OLD | NEW |
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 List libraryList; | 5 List libraryList; |
6 InputElement searchInput; | 6 InputElement searchInput; |
7 DivElement dropdown; | 7 DivElement dropdown; |
8 | 8 |
9 /** | 9 /** |
10 * Update the search drop down based on the current search text. | 10 * Update the search drop down based on the current search text. |
(...skipping 324 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
335 dropdown = query('#drop-down'); | 335 dropdown = query('#drop-down'); |
336 | 336 |
337 searchInput.on.keyDown.add(handleUpDown); | 337 searchInput.on.keyDown.add(handleUpDown); |
338 searchInput.on.keyUp.add(updateDropDown); | 338 searchInput.on.keyUp.add(updateDropDown); |
339 searchInput.on.change.add(updateDropDown); | 339 searchInput.on.change.add(updateDropDown); |
340 searchInput.on.reset.add(updateDropDown); | 340 searchInput.on.reset.add(updateDropDown); |
341 searchInput.on.focus.add((event) => showDropDown()); | 341 searchInput.on.focus.add((event) => showDropDown()); |
342 searchInput.on.blur.add((event) => hideDropDown()); | 342 searchInput.on.blur.add((event) => hideDropDown()); |
343 window.on.keyDown.add(shortcutHandler); | 343 window.on.keyDown.add(shortcutHandler); |
344 } | 344 } |
OLD | NEW |