Index: Source/WebCore/inspector/front-end/ScriptsNavigator.js |
=================================================================== |
--- Source/WebCore/inspector/front-end/ScriptsNavigator.js (revision 112683) |
+++ Source/WebCore/inspector/front-end/ScriptsNavigator.js (working copy) |
@@ -219,11 +219,14 @@ |
/** |
* @param {WebInspector.UISourceCode} uiSourceCode |
+ * @param {boolean} focusSource |
*/ |
- scriptSelected: function(uiSourceCode) |
+ _scriptSelected: function(uiSourceCode, focusSource) |
{ |
this._lastSelectedUISourceCode = uiSourceCode; |
this.dispatchEventToListeners(WebInspector.ScriptsPanel.FileSelector.Events.FileSelected, uiSourceCode); |
+ if (focusSource) |
+ this.dispatchEventToListeners(WebInspector.ScriptsPanel.FileSelector.Events.ReleasedFocusAfterSelection, uiSourceCode); |
}, |
/** |
@@ -575,17 +578,24 @@ |
this.listItemElement.addEventListener("click", this._onclick.bind(this), false); |
}, |
+ onspace: function() |
+ { |
+ this._navigator._scriptSelected(this.uiSourceCode, true); |
+ return true; |
+ }, |
+ |
/** |
* @param {Event} event |
*/ |
_onclick: function(event) |
{ |
- this._navigator.scriptSelected(this.uiSourceCode); |
+ this._navigator._scriptSelected(this.uiSourceCode, false); |
}, |
onenter: function() |
{ |
- this._navigator.scriptSelected(this.uiSourceCode); |
+ this._navigator._scriptSelected(this.uiSourceCode, true); |
+ return true; |
} |
} |