Skip to content

Commit

Permalink
Merge pull request #1363 from alohaeditor/hotfix-1.0.x-sup-573
Browse files Browse the repository at this point in the history
Fix bubbling of ENTER in the search field of the repository browser.
  • Loading branch information
Petro Salema committed Mar 16, 2015
2 parents 7388c1d + 4781ad1 commit db38a78
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
@@ -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.
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 db38a78

Please sign in to comment.