Skip to content

Commit

Permalink
fix: Click on find icon to focus the find bar. 🌁
Browse files Browse the repository at this point in the history
Reviewer: @bwinton
Fixes #420.  ☁️☁️☁️
Merge pull request #423 from ericawright/fix/find_focus.
  • Loading branch information
bwinton authored Jul 20, 2016
2 parents 2cd82d5 + 2823132 commit 4364f94
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions verticaltabs.jsm
Original file line number Diff line number Diff line change
Expand Up @@ -357,6 +357,9 @@ VerticalTabs.prototype = {
'id': 'tabs-search'
});
find_input.appendChild(search_icon);
search_icon.addEventListener('click', function (e) {
find_input.focus();
});
find_input.addEventListener('input', this.filtertabs.bind(this));
this.window.addEventListener('keyup', (e) => {
if(e.keyCode === 27) {
Expand Down

0 comments on commit 4364f94

Please sign in to comment.