Chromium Code Reviews| Index: third_party/WebKit/Source/devtools/front_end/ui/InspectorView.js |
| diff --git a/third_party/WebKit/Source/devtools/front_end/ui/InspectorView.js b/third_party/WebKit/Source/devtools/front_end/ui/InspectorView.js |
| index 5d2782129c514dccfe8c2366a65ff4fa17911085..b9c01d1d4a7008eccce3153a9787a885dde9e190 100644 |
| --- a/third_party/WebKit/Source/devtools/front_end/ui/InspectorView.js |
| +++ b/third_party/WebKit/Source/devtools/front_end/ui/InspectorView.js |
| @@ -409,7 +409,11 @@ WebInspector.InspectorView.prototype = { |
| */ |
| defaultFocusedElement: function() |
| { |
| - return this._currentPanel ? this._currentPanel.defaultFocusedElement() : null; |
| + if (this._drawer.hasFocus()) { |
|
lushnikov
2016/05/23 18:19:24
style 1: the if blocks with return statements shou
luoe
2016/05/23 19:18:41
Done.
|
| + return this._drawer.defaultFocusedElement(); |
| + } else { |
| + return this._currentPanel ? this._currentPanel.defaultFocusedElement() : null; |
| + } |
| }, |
| _keyPress: function(event) |