keyCode for tab is not working
backbone.js, events, javascript, jquery
Solution
I fixed it by replace keypress with keydown.
Problem
I am using the event keypress in backbone. The keyCode for Enter(13) works fine but the keyCode for tab(9) is not working for some odd reason. Please help me figure this out. Thanks. ``` onEnterSetTitle: function(ev) { if (ev.keyCode === 9) { this.$el.find('.set-title-input input').trigger('blur'); } }, ```