Skip to content

Commit

Permalink
Revert "Listento Keyup events to handle inputBox.resize"
Browse files Browse the repository at this point in the history
This reverts commit a3f2bdd.
  • Loading branch information
samuelclay committed Feb 9, 2014
1 parent c10943f commit 8daacaa
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions lib/js/views/search_input.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ VS.ui.SearchInput = Backbone.View.extend({
events : {
'keypress input' : 'keypress',
'keydown input' : 'keydown',
'keyup input' : 'keyup',
'click input' : 'maybeTripleClick',
'dblclick input' : 'startTripleClickTimer'
},
Expand Down Expand Up @@ -404,11 +403,6 @@ VS.ui.SearchInput = Backbone.View.extend({
view.setCursorAtEnd(-1);
}

},

// We should get the value of an input should be done
// on keyup since keydown gets the previous value and not the current one
keyup : function(e) {
this.box.trigger('resize.autogrow', e);
}

Expand Down

0 comments on commit 8daacaa

Please sign in to comment.