Skip to content

Commit

Permalink
Fix bubbling of ENTER in the search field of the repository browser.
Browse files Browse the repository at this point in the history
  • Loading branch information
npomaroli committed Mar 12, 2015
1 parent 7388c1d commit 4781ad1
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions build/changelog/entries/2015/03/10197.SUP-573.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
When using ENTER to submit a search in the repository browser, the ENTER
possible bubbled to the page and caused something to happen there as well.
Bubbling of the ENTER from the search field is now prevented.
Original file line number Diff line number Diff line change
Expand Up @@ -328,6 +328,7 @@
var $search = $title.find('.repository-browser-search-field').keypress(function (event) {
// ENTER ←┘
if (13 === event.keyCode) {
event.preventDefault();
browser._triggerSearch();
}
});
Expand Down
2 changes: 1 addition & 1 deletion src/lib/vendor/repository-browser/js/repository-browser.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 4781ad1

Please sign in to comment.