Skip to content

Commit

Permalink
Keypress Doesn't Catch Enter Key on All Browsers
Browse files Browse the repository at this point in the history
  • Loading branch information
Kelderic committed Jun 12, 2017
1 parent a192419 commit 010be6a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mapstractor.js
Original file line number Diff line number Diff line change
Expand Up @@ -508,7 +508,7 @@

// PREVENT ENTER KEY FROM SUBMITTING A FORM, IF INPUT IS IN FORM

searchInputElement.addEventListener('keypress', function(event){
searchInputElement.addEventListener('keydown', function(event){
var key = event.charCode || event.keyCode || 0;
if ( key == 13 ) {
event.preventDefault();
Expand Down

0 comments on commit 010be6a

Please sign in to comment.