Skip to content

Commit 4e5a9e4

Browse files
committed
Merge pull request bjorn2404#10 from JimmyRittenborg/patch-2
Removed hijack of return key on entire page
2 parents 06b1b66 + 261ff04 commit 4e5a9e4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

js/jquery.storelocator.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ $.fn.storeLocator = function(options) {
298298
get_form_values(e);
299299
});
300300
$(document).on('keyup.'+prefix, function(e){
301-
if (e.keyCode === 13) {
301+
if (e.keyCode === 13 && $('#' + settings.inputID).is(':focus')) {
302302
get_form_values(e);
303303
}
304304
});

0 commit comments

Comments
 (0)