Skip to content
This repository has been archived by the owner on Nov 3, 2021. It is now read-only.

Commit

Permalink
Merge pull request #7380 from albertopq/issue-827732
Browse files Browse the repository at this point in the history
Bug 827732 - Paint the search bar before showing the keyboard r=arcturus
  • Loading branch information
albertopq committed Jan 8, 2013
2 parents 87fead6 + f0f59ab commit a2e61a4
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions apps/communications/contacts/js/search.js
Expand Up @@ -203,13 +203,15 @@ contacts.Search = (function() {

if (!inSearchMode) {
window.addEventListener('input', onInput);
window.addEventListener('MozAfterPaint', function afterpaint() {
// And now that everything is ready let's paint the keyboard
searchBox.focus();
window.removeEventListener('MozAfterPaint', afterpaint);
});
searchView.classList.add('insearchmode');
fillInitialSearchPage();
inSearchMode = true;
emptySearch = true;

// And now that everything is ready let's paint the keyboard
searchBox.focus();
}
};

Expand Down

0 comments on commit a2e61a4

Please sign in to comment.