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. -- set the focus to the search input field if the new search term is pasted from the editor text selection.
  • Loading branch information
libingw committed May 1, 2017
1 parent 30eeedb commit cb252b3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
Expand Up @@ -92,11 +92,15 @@ define([
isVisible: function() {
return this._slideout.isVisible() && (this === this._slideout.getCurrentViewMode());
},


focusOnTextInput: function() {
window.setTimeout(this._focusOnTextInput, 200);
},

show: function() {
this.previousDocumentTitle = window.document.title;
SlideoutViewMode.prototype.show.call(this);
window.setTimeout(this._focusOnTextInput, 100);
this.focusOnTextInput();
},

hide: function() {
Expand Down
1 change: 1 addition & 0 deletions bundles/org.eclipse.orion.client.ui/web/orion/sidebar.js
Expand Up @@ -376,6 +376,7 @@ define(['orion/objects', 'orion/commands', 'orion/outliner', 'orion/webui/little
if(searchText) {
this._inlineSearchPane.setSearchText(searchText);
this._inlineSearchPane.showSearchOptions();
this._inlineSearchPane.focusOnTextInput();
} else {
this._inlineSearchPane.hide();
}
Expand Down

0 comments on commit cb252b3

Please sign in to comment.