Skip to content

Commit

Permalink
close the autocomplete dropdown when the user hits enter in the locat…
Browse files Browse the repository at this point in the history
…ion box
  • Loading branch information
rbuels committed Jun 1, 2012
1 parent 53caabe commit 689da81
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions js/Browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -1086,6 +1086,7 @@ Browser.prototype.createNavBox = function( parent, locLength ) {
dojo.create('input',{ size: locLength },navbox) );
dojo.connect( this.locationBox.focusNode, "keydown", this, function(event) {
if (event.keyCode == dojo.keys.ENTER) {
this.locationBox.closeDropDown(false);
this.navigateTo( this.locationBox.get('value') );
this.goButton.set('disabled',true);
dojo.stopEvent(event);
Expand Down

0 comments on commit 689da81

Please sign in to comment.