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

Bug 827732 - Paint the search bar before showing the keyboard r=arcturus #7380

Merged
merged 1 commit into from Jan 8, 2013
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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