Skip to content
This repository has been archived by the owner on Dec 21, 2023. It is now read-only.

Commit

Permalink
When finally handling an 'enter selects', prevent the default behavio…
Browse files Browse the repository at this point in the history
…r to avoid multiple 'enters'.
  • Loading branch information
supahgreg committed Jun 3, 2011
1 parent 2926002 commit 06c8e27
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions speakWords/bootstrap.js
Expand Up @@ -228,6 +228,9 @@ function addEnterSelects(window) {
return;
}

// Prevent the default enter (return) behavior
aEvent.preventDefault();

// Calling handleEnter will cause the selected popup item to be used
gURLBar.mEnterEvent = aEvent;
gURLBar.controller.handleEnter(true);
Expand Down

0 comments on commit 06c8e27

Please sign in to comment.