OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * | 10 * |
(...skipping 358 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
369 * @param {Event} event | 369 * @param {Event} event |
370 */ | 370 */ |
371 _onKeyDown: function(event) | 371 _onKeyDown: function(event) |
372 { | 372 { |
373 switch (event.keyCode) { | 373 switch (event.keyCode) { |
374 case WebInspector.KeyboardShortcut.Keys.Enter.code: | 374 case WebInspector.KeyboardShortcut.Keys.Enter.code: |
375 this._onAction(); | 375 this._onAction(); |
376 break; | 376 break; |
377 case WebInspector.KeyboardShortcut.Keys.Esc.code: | 377 case WebInspector.KeyboardShortcut.Keys.Esc.code: |
378 this._controller.close(); | 378 this._controller.close(); |
379 event.consume(); | 379 event.consume(true); |
380 break; | 380 break; |
381 } | 381 } |
382 }, | 382 }, |
383 | 383 |
384 _save: function() | 384 _save: function() |
385 { | 385 { |
386 var searchConfig = new WebInspector.SearchConfig(this.searchConfig.query
, this.searchConfig.ignoreCase, this.searchConfig.isRegex); | 386 var searchConfig = new WebInspector.SearchConfig(this.searchConfig.query
, this.searchConfig.ignoreCase, this.searchConfig.isRegex); |
387 WebInspector.settings.advancedSearchConfig.set(searchConfig); | 387 WebInspector.settings.advancedSearchConfig.set(searchConfig); |
388 }, | 388 }, |
389 | 389 |
(...skipping 305 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
695 */ | 695 */ |
696 WebInspector.FileBasedSearchResultsPane.SearchResult = function(file, searchMatc
hes) { | 696 WebInspector.FileBasedSearchResultsPane.SearchResult = function(file, searchMatc
hes) { |
697 this.file = file; | 697 this.file = file; |
698 this.searchMatches = searchMatches; | 698 this.searchMatches = searchMatches; |
699 } | 699 } |
700 | 700 |
701 /** | 701 /** |
702 * @type {WebInspector.AdvancedSearchController} | 702 * @type {WebInspector.AdvancedSearchController} |
703 */ | 703 */ |
704 WebInspector.advancedSearchController = null; | 704 WebInspector.advancedSearchController = null; |
OLD | NEW |