Skip to content

Commit

Permalink
The prettyautocompleter should not propagate KEY_RETURN presses.
Browse files Browse the repository at this point in the history
Should act like anyother textarea (since that what it looks like from
the user's point of view). As a bonus, fixes Bug: 12932.
  • Loading branch information
mrubinsk committed Apr 2, 2014
1 parent d765225 commit fa30a52
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions framework/Core/js/prettyautocomplete.js
Expand Up @@ -168,8 +168,8 @@ var PrettyAutocompleter = Class.create({

_onKeyDown: function(e)
{
// Check for a comma
if (e.keyCode == 188 && !this.p.requireSelection) {
// Check for a comma or enter
if ((e.keyCode == 188 || e.keyCode == Event.KEY_RETURN) && !this.p.requireSelection) {
this._processValue();
e.stop();
} else if (e.keyCode == 188) {
Expand Down

0 comments on commit fa30a52

Please sign in to comment.