Skip to content
This repository has been archived by the owner on Mar 21, 2019. It is now read-only.

Commit

Permalink
Blur focus from text input field after searching for a location
Browse files Browse the repository at this point in the history
  • Loading branch information
brianchirls committed Dec 17, 2014
1 parent f314b38 commit 481f8a2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -583,6 +583,7 @@
locationInput.addEventListener('keypress', function (evt) {
if (evt.keyCode === 13) {
searchLocation(locationInput.value);
locationInput.blur();
}
});
}
Expand Down

0 comments on commit 481f8a2

Please sign in to comment.