| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2006, 2007, 2008 Apple Inc. All rights reserved. | 2 * Copyright (C) 2006, 2007, 2008 Apple Inc. All rights reserved. |
| 3 * Copyright (C) 2007 Matt Lilek (pewtermoose@gmail.com). | 3 * Copyright (C) 2007 Matt Lilek (pewtermoose@gmail.com). |
| 4 * Copyright (C) 2009 Joseph Pecoraro | 4 * Copyright (C) 2009 Joseph Pecoraro |
| 5 * Copyright (C) 2011 Google Inc. All rights reserved. | 5 * Copyright (C) 2011 Google Inc. All rights reserved. |
| 6 * | 6 * |
| 7 * Redistribution and use in source and binary forms, with or without | 7 * Redistribution and use in source and binary forms, with or without |
| 8 * modification, are permitted provided that the following conditions | 8 * modification, are permitted provided that the following conditions |
| 9 * are met: | 9 * are met: |
| 10 * | 10 * |
| (...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 238 * @return {!Element} | 238 * @return {!Element} |
| 239 */ | 239 */ |
| 240 defaultFocusedElement: function() | 240 defaultFocusedElement: function() |
| 241 { | 241 { |
| 242 var children = this.children(); | 242 var children = this.children(); |
| 243 for (var i = 0; i < children.length; ++i) { | 243 for (var i = 0; i < children.length; ++i) { |
| 244 var element = children[i].defaultFocusedElement(); | 244 var element = children[i].defaultFocusedElement(); |
| 245 if (element) | 245 if (element) |
| 246 return element; | 246 return element; |
| 247 } | 247 } |
| 248 return WebInspector.View.prototype.defaultFocusedElement.call(this); | 248 return WebInspector.Widget.prototype.defaultFocusedElement.call(this); |
| 249 }, | 249 }, |
| 250 | 250 |
| 251 /** | 251 /** |
| 252 * @param {!Event} event | 252 * @param {!Event} event |
| 253 */ | 253 */ |
| 254 _onKeyDown: function(event) | 254 _onKeyDown: function(event) |
| 255 { | 255 { |
| 256 var shortcutKey = WebInspector.KeyboardShortcut.makeKeyFromEvent(/**@typ
e {!KeyboardEvent}*/(event)); | 256 var shortcutKey = WebInspector.KeyboardShortcut.makeKeyFromEvent(/**@typ
e {!KeyboardEvent}*/(event)); |
| 257 var handler = this._shortcuts[shortcutKey]; | 257 var handler = this._shortcuts[shortcutKey]; |
| 258 if (handler && handler(event)) | 258 if (handler && handler(event)) |
| (...skipping 473 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 732 // Silent catch. | 732 // Silent catch. |
| 733 } | 733 } |
| 734 | 734 |
| 735 // Otherwise just do a plain text search. | 735 // Otherwise just do a plain text search. |
| 736 if (!regex) | 736 if (!regex) |
| 737 regex = createPlainTextSearchRegex(query, modifiers); | 737 regex = createPlainTextSearchRegex(query, modifiers); |
| 738 | 738 |
| 739 return regex; | 739 return regex; |
| 740 } | 740 } |
| 741 } | 741 } |
| OLD | NEW |