Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Bug 516002 - CTRL+SHIFT+H should not hide the search panel if there i…
…s selection in the editor.
  • Loading branch information
libingw committed May 1, 2017
1 parent 7340c90 commit a5c725c
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion bundles/org.eclipse.orion.client.ui/web/orion/sidebar.js
Expand Up @@ -372,7 +372,13 @@ define(['orion/objects', 'orion/commands', 'orion/outliner', 'orion/webui/little
},
callback: function (data) {
if (this._inlineSearchPane.isVisible()) {
this._inlineSearchPane.hide();
var searchText = getSearchText();
if(searchText) {
this._inlineSearchPane.setSearchText(searchText);
this._inlineSearchPane.showSearchOptions();
} else {
this._inlineSearchPane.hide();
}
} else {
this._inlineSearchPane.updateSearchScopeFromSelection(data.items.length > 0 ? (typeof data.items[0] === 'string' ? this.editorInputManager.inputManager.getFileMetadata() : data.items[0])
: data.items);
Expand Down

0 comments on commit a5c725c

Please sign in to comment.